Page 1 of 1

Adding a label to a channel

PostPosted: Tue Oct 05, 2010 4:54 pm
by icaoberg
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:

Re: Adding a label to a channel

PostPosted: Wed Oct 06, 2010 6:18 am
by jmoore
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.