We're Hiring!

OMEROPy and Bioformats

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.

OMEROPy and Bioformats

Postby icaoberg » Wed May 23, 2012 5:22 pm

Are there libraries and/or helper packages that connect OMEROPy and Bioformats? Or there any python bindings for Bioformats?

Ivan
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: OMEROPy and Bioformats

Postby jmoore » Thu May 24, 2012 3:08 pm

At the moment there is no native and/or Python library support for Bio-Formats, but that is certainly something we'll be looking into in the near future. Other options include using scripts via OMERO, using a separate standalone process like [url=https://github.com/CellProfiler/subimager]subimager, or if at all possible, using Jython.

What exactly are you trying to achieve?

Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: OMEROPy and Bioformats

Postby icaoberg » Thu May 24, 2012 4:27 pm

a very simple task. i want to use Bioformats within python to read a local image file and get a numpy array.

the future goal is to add this functionality to our pyslid package so we can read ome-tiffs in the near future.
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: OMEROPy and Bioformats

Postby wmoore » Fri May 25, 2012 8:04 am

Depending on what format you need, I have used EMAN2 to get numpy data for a number of formats. Have a look at http://blake.bcm.edu/emanwiki/EMAN2ImageFormats

Or you could use PIL for png, jpeg, (tiff?).
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: OMEROPy and Bioformats

Postby chrism » Tue Sep 11, 2012 9:24 am

Hi,

I've experimented with JPype (http://jpype.sourceforge.net) and JCC http://lucene.apache.org/pylucene/jcc/index.html to access the bio-formats Java API. JCC builds a Python wrapper module for JARs and seemed to work better (better error messages and code completion).

Here is a simple JCC build file to wrap ome-xml.jar:

https://gist.github.com/3697132

Hope this helps,

\m/ Christian
chrism
 
Posts: 9
Joined: Thu Mar 10, 2011 1:38 pm


Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest