We're Hiring!

Adding a label to a channel

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.

Adding a label to a channel

Postby icaoberg » Tue Oct 05, 2010 4:54 pm

What would be the most efficient way to attach a label to a channel. Say for example, in my database I know that channel 0 is always my protein of interest and channel 1 is a reference channel (e.g. dna). I would like to attach a label to these. So that ideally, If I search channel:dna I would get the second channel of every image in my database. :idea:
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: Adding a label to a channel

Postby jmoore » Wed Oct 06, 2010 6:18 am

Hi Ivan,

could you check the images in your system and tell me what the value of:
Code: Select all
image.getPrimaryPixels().getChannel(0).getLogicalChannel().getName()

is? If that is being unused, or is just a number, that may be the best location for you to store your label information. For some image file types, however, that information will be appropriately filled out. If that suffices for you to differentiate your channels, that's great.

Otherwise, you will need to attach the information externally. One option would be to add a structured annotation to each channel. This will produce an exorbitant number of annotations in your system, but that might be what works best for you.

You might also take a look at http://www.ome-xml.org/wiki/CompliantSpecification#Definitionsofvaluesstored to see what else is in the model.

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


Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 0 guests