We're Hiring!

Processing OMERO server images with CellProfiler

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

Processing OMERO server images with CellProfiler

Postby PhilippeP » Fri May 22, 2015 11:55 am

We have a running OMERO server, no problem in using it, and smooth connection with ImageJ, both ways.
But we have not been able to call and process images stored in OMERO with CellProfiler, which would make things a lot easier for us (high throughput microscopy).
I understand that I should see with the CellProfiler team about that. I did, but it still does not work. :(
Relevant post is there: http://www.cellprofiler.org/forum/viewt ... =14&t=4307
Does anyone here have any good advice on how to get that running?
Thanx!
Philippe
PhilippeP
 
Posts: 44
Joined: Tue Oct 22, 2013 1:31 pm

Re: Processing OMERO server images with CellProfiler

Postby emil.rozbicki » Fri May 22, 2015 4:47 pm

Hi Philippe,

Are the images in your default group? Cell Profiler only allows to access the images that are in the default group if not it will result in errors.

Also to test that everything works fine you could try the following:
1. Fresh open Cell Profiler
2. Drag and drop single OMERO url to Images module omero:iid=ImageId
3. Set No filtering on Filter Images?
4. In Metadata module set Extract metadata to Yes.
5. Set extraction method to: [....] from image file headers
6. Click "Update Metadata" under extraction method in the same panel and not the "Update" button in the bottom panel. This should prompt for OMERO server details and after successful connection will pull the Image metadata from the server or give you an error (e.g. when ImageID does not exists or when it's not in your default group).
7. If you don't get any errors go back to Images modules and double click the OMERO Image url on the File list this should create a new window with the image - screenshot below.

Image.jpg
Image.jpg (148.85 KiB) Viewed 3767 times


It works for me on a Mac, never tried on Windows though.

Cheers,
Emil
emil.rozbicki
 
Posts: 5
Joined: Wed Jul 16, 2014 8:39 am

Re: Processing OMERO server images with CellProfiler

Postby PhilippeP » Tue Jun 02, 2015 11:26 am

Hi Emil,

Thanks for your response that I just found out. I followed your advice, and here is the result:

My test images are in a folder located in my default group. I have access to them through my OMERO server.

1. Fresh open Cell Profiler
OK
2. Drag and drop single OMERO url to Images module omero:iid=ImageId
OK (see attached file "Capture.PNG" which is a screenshot of the simple TestOmero1image.csv file that I used here)
3. Set No filtering on Filter Images?
OK
4. In Metadata module set Extract metadata to Yes.
OK
5. Set extraction method to: [....] from image file headers
OK
6. Click "Update Metadata" under extraction method in the same panel and not the "Update" button in the bottom panel. This should prompt for OMERO server details and after successful connection will pull the Image metadata from the server or give you an error (e.g. when ImageID does not exists or when it's not in your default group).
ERROR:

Traceback (most recent call last):
File "cellprofiler\gui\moduleview.pyc", line 1116, in callback
File "cellprofiler\gui\moduleview.pyc", line 2012, in __on_do_something
File "cellprofiler\settings.pyc", line 1944, in on_event_fired
File "cellprofiler\modules\metadata.pyc", line 484, in <lambda>
File "cellprofiler\modules\metadata.pyc", line 860, in do_update_metadata
File "bioformats\formatreader.pyc", line 953, in get_omexml_metadata
File "bioformats\formatreader.pyc", line 188, in setId
File "cellprofiler\utilities\jutil.pyc", line 785, in call
File "cellprofiler\utilities\jutil.pyc", line 762, in fn
JavaException

I do not get any login window. I just get the CellProfiler error window.
:?
Any idea?
Philippe
Attachments
Capture.PNG
Capture.PNG (37.65 KiB) Viewed 3744 times
PhilippeP
 
Posts: 44
Joined: Tue Oct 22, 2013 1:31 pm

Re: Processing OMERO server images with CellProfiler

Postby emil.rozbicki » Mon Jun 08, 2015 8:35 am

Hi Philippe,

I haven't managed to reproduce your error on Mac (no Omero connection Window). I'm getting similar stack trace to the one you reported if I cancel the connection to the Omero sever. It seems that Cell Profiler is not checking whether you are connected or not and just goes on anyway. Have you tried different Cell Profiler versions? I will try to reproduce your error on Windows.

Cheers,
Emil
emil.rozbicki
 
Posts: 5
Joined: Wed Jul 16, 2014 8:39 am

Re: Processing OMERO server images with CellProfiler

Postby PhilippeP » Mon Jun 15, 2015 12:22 pm

Hi Emil,
I did try the last stable release of CP, as well as the last available nightly build. Same in both cases...
:?
PhilippeP
 
Posts: 44
Joined: Tue Oct 22, 2013 1:31 pm

Re: Processing OMERO server images with CellProfiler

Postby emil.rozbicki » Wed Jun 17, 2015 9:40 am

Hi Philippe,

I just tried CellProfiler 2.1.1 (rev 6c2d896) on Windows 8 and all works fine for me. Got the login window, connected to the server and managed to retrieve the image metadata.
Do you have access to another machine? This could possibly tell you if the problem is with you local configuration.

Cheers,
Emil
emil.rozbicki
 
Posts: 5
Joined: Wed Jul 16, 2014 8:39 am

Re: Processing OMERO server images with CellProfiler

Postby PhilippeP » Thu Jun 18, 2015 3:04 pm

We are on W7, but I doubt this is the reason why we cannot connect. We will run more test to try to find out where the problem comes from. I don't know if I mentioned, but curiously, we do not have any problem to connect to OMERO through ImageJ on the same machine.
Thank you anyway for testing on W8.
Philippe
PhilippeP
 
Posts: 44
Joined: Tue Oct 22, 2013 1:31 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest