Comments (4)
If your cellprofiler pipeline works with multiple channels then it's certainly possible to load them from OMERO.
If it only works with 2 channels and your images have 4, you could still just pick 2 of the 4 channels and load them.
Are you referring to the walkthrough at https://omero-guides.readthedocs.io/en/latest/cellprofiler/docs/gettingstarted.html and the script at
https://github.com/ome/omero-guide-cellprofiler/blob/248e8cbfb0372b3d3be2d82cfe9234dd2e25c140/scripts/idr0002_save.py
The iterates through all the image channels at for c in range(0, size_c):
but only expects 2 channels.
from omero-guides.
Actually, my pipeline don't really work for multichanel, i have to first separate the chanels and run the pipeline. I thought that this script kind of separate the chanels so we can run the pipeline.
I already change this line (for c in range(0, size_c)) in the code but i still have this message error:
IF304_FE22386
pipeline_exception
ERROR:root:Error detected during run of module Watershed
Traceback (most recent call last):
File "/Users/melissamenga/miniconda/envs/omero_menga/lib/python3.8/site-packages/cellprofiler_core/pipeline/_pipeline.py", line 1016, in run_with_yield
self.run_module(module, workspace)
File "/Users/melissamenga/miniconda/envs/omero_menga/lib/python3.8/site-packages/cellprofiler_core/pipeline/_pipeline.py", line 1349, in run_module
module.run(workspace)
File "/Users/melissamenga/miniconda/envs/omero_menga/lib/python3.8/site-packages/cellprofiler/modules/watershed.py", line 500, in run
raise ValueError("Structuring element does not match object dimensions: "
ValueError: Structuring element does not match object dimensions: 3 != 2
(My image are multi chanel (4 generally) and with z-stack, and my pipeline take as input the 4 chanels separatly and segment the nuceli)
from omero-guides.
I'm not familiar with Cellprofiler so I don't know what that error means, but I'm guessing the dimension it's referring to is Channels. It looks like it's expecting 3 channels and you're giving it 2 channels (or vice versa)?
I even tried looking for that line in the cellprofiler code at https://github.com/CellProfiler/CellProfiler/blob/611ab2abd59b80230889d9f56fcc1954fb13d3d4/src/frontend/cellprofiler/modules/watershed.py#L4 but I don't see it (probably different version)?
from omero-guides.
(probably different version)?
I think it should be the CellProfiler version as per https://github.com/ome/EMBL-EBI-imaging-course-04-2024/blob/5c66178df5af1d6779e9665438ed580ad12765ef/Day_4/environment_cp.yml#L25.
Also, try to have the script as per notebook in https://github.com/ome/EMBL-EBI-imaging-course-04-2024/blob/main/Day_4/Cellprofiler.ipynb - sorry, but as you can see, the notebooks in https://github.com/ome/EMBL-EBI-imaging-course-04-2024 are more up-to-date (as you can see on the CP version for example, as the https://github.com/ome/EMBL-EBI-imaging-course-04-2024/blob/5c66178df5af1d6779e9665438ed580ad12765ef/Day_4/environment_cp.yml#L25 is the correct one.
Then I would recommend to set the environment up as per https://github.com/ome/EMBL-EBI-imaging-course-04-2024/blob/main/Day_4/setup.md - then, if successful, start incrementally making changes to that Jupyter notebook https://github.com/ome/EMBL-EBI-imaging-course-04-2024/blob/main/Day_4/Cellprofiler.ipynb so that you can insert your pipeline. In order to be able to help you, you will have to show us your pipeline, your script or Jupyter notebook and point to the exact line which is erroring.
Hope this helps.
from omero-guides.
Related Issues (20)
- What you need to set up OMERO training HOT 12
- Videos on youtube
- Tips and tricks HOT 1
- Fix the sphinx versions HOT 2
- Symlink between ImageJ and Fiji url
- Link to top level does not work after search HOT 5
- Multiple guides assume you have an outreach account HOT 1
- Training documentation could be more specific about finding the main webpage of the OME project. HOT 1
- Training documentation should suggest using OMERO-guides. HOT 1
- Referenced data used in guides can only be seen in a specific user account. HOT 1
- napari segmentation example
- Integrating external guides
- copyright statement misleading HOT 2
- Upload hidden HOT 1
- Renaming guides HOT 4
- Icons/graphic on the General concepts page
- `make html` warnings HOT 3
- Logos appear squashed on Safari HOT 9
- share HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omero-guides.