We're Hiring!

Importing 'public' images from OMERO5.server to ImageJ

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please 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

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Thu Aug 21, 2014 2:31 am

We are hoping to allow any user to import images, which are managed by 'public user' on our OMERO.server (ver. 5.0.0, http://ssbd.qbic.riken.jp/omero/), into ImageJ via a plugin such as Bio-Formats Remote Importer and OMERO.insight without use of a password. Our configuration currently allows to access by OMERO.insight, but requires a password.
Does anyone have any suggestions?
Yukako.
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby jburel » Thu Aug 21, 2014 9:34 pm

Dear Yukako

A possible solution will be to start OMERO.insight from the webclient using Webstart and pass the session ID.
That option will require to adjust OMERO.insight to accept sessionID instead of user/password: this should be pretty straightforward, the second change is to pass parameters to OMERO.insight when launched via Webstart.

Cheers
Jmarie
User avatar
jburel
Team Member
 
Posts: 348
Joined: Thu May 21, 2009 6:38 pm
Location: dundee

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby wmoore » Thu Aug 21, 2014 10:57 pm

Another alternative might be to allow web users to simply upload images as attachments (E.g. to a Dataset) then have a server-side script which periodically uses the command-line importer to import the images into the appropriate Dataset.

This would remove the need for users to use Insight, although they'd need alternative instructions on how to upload images.
Also the command-line importer would need to handle import failures in some way - might need some supervision.

Just a thought!
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Mon Aug 25, 2014 9:40 am

Dear Jmarie and Wmoore,

Thanks for your advices.

I would like to choice the 1st solution (adjustment of OMERO.insight).
Does such case I need to edit and compile the source of OMERO.server ?

However, I failed the compilation from the source using Java 1.7.0_45,
Python 2.6.6, and ICE3.4 on RedHat 6, even though binary OMERO.server ran properly
under the same conditions.

Code: Select all
$ git clone --recursive git://github.com/openmicroscopy/openmicroscopy
$ cd openmicroscopy
$./build.py
...
BUILD FAILED
/OMERO/openmicroscopy/build.xml:191: The following error occurred while executing this line:
/OMERO/openmicroscopy/components/antlib/resources/global.xml:411: The following error occurred while executing this line:
/OMERO/openmicroscopy/components/blitz/build.xml:28: The following error occurred while executing this line:
/OMERO/openmicroscopy/components/blitz/build.xml:212: The following error occurred while executing this line:
/OMERO/openmicroscopy/components/antlib/resources/global.xml:554: exec returned: 2


Best regards,
Yukako
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby manics » Mon Aug 25, 2014 10:53 am

Hi Yukako

Could you paste or attach your entire build error? I think you're probably missing some build dependencies which are in addition to those required to run the server. On RHEL6 these include the java-1.7.0-openjdk-devel ice-python-devel ice-java-devel python-genshi packages (amongst others), if you show us the full error it should become clearer.

The other thing to beware of is which branch you're building. If you want to modify a server from the 5.0 series you'll need to check out the dev_5_0 branch, by default you'll check out our development branch.

Simon
User avatar
manics
Team Member
 
Posts: 261
Joined: Mon Oct 08, 2012 11:01 am
Location: Dundee

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby manics » Mon Aug 25, 2014 4:52 pm

For RHEL/CentOS 6 you might also need to install python-setuptools and set the SLICEPATH environment variable:

Code: Select all
sudo yum -y install git java-1.7.0-openjdk-devel \
    ice-servers ice-python-devel ice-java-devel ice-c++-devel \
    python-genshi python-setuptools
export SLICEPATH=/usr/share/Ice-X.X.X/slice
./build.py
User avatar
manics
Team Member
 
Posts: 261
Joined: Mon Oct 08, 2012 11:01 am
Location: Dundee

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Tue Aug 26, 2014 1:30 am

Hi Simon and Manics,

Thanks! I successed to compile! My failure caused by loss of python-genshi and
and undefined SLICEPATH.

Next I will edit /components/insight/SRC/org/openmicroscopy/shoola/*.java
to implement a connection between ImageJ and OMERO.insight using session ID.

Please allow me to ask some questions if I am stuck the editing.

Thanks,
Yukako
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby mtbc » Tue Aug 26, 2014 7:07 am

Dear Yukako,

I am glad to hear of your success, thank you for letting us know. We will be glad to answer any further questions you have on how to achieve this link with OMERO. Do also let us know if any of the existing developer documentation is unclear.

Cheers,
Mark
User avatar
mtbc
Team Member
 
Posts: 282
Joined: Tue Oct 23, 2012 10:59 am
Location: Dundee, Scotland

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Tue Aug 26, 2014 8:47 am

Dear all,

Sorry to get straight to the point but could you tell me
how can I add the OMERO.insight function into source-compiled OMERO.server?

I could not find "Launch OMERO.insight via Java Web start" button on Webclient
and "/dist/lib/insight/" folder in source's directories
(Ver. 5.0.0/web-downloaded, 5.0.3/web-downloaded, and 5.1.0/git-clone).

I tried './build.py build-insight' and successed, but did not appear those.

Best regards,
Yukako.
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby manics » Tue Aug 26, 2014 8:56 am

Hi Yukako

To get Insight working via webstart you'll have to run './build.py release-webstart=signed' after './build.py', but be aware you'll have to modify your Java security settings to allow self-signed webstart applications to run (our releases are signed with our own code-signing certificate from a recognised certificate authority). Alternatively you could run './build.py release-clients', then unzip and run Insight from the command line.

Simon
User avatar
manics
Team Member
 
Posts: 261
Joined: Mon Oct 08, 2012 11:01 am
Location: Dundee

Next

Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 1 guest