We're Hiring!

Searching for IDs using the Command Line Interface

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.

Searching for IDs using the Command Line Interface

Postby gregj » Wed May 18, 2016 6:08 pm

I'm trying to use the command line interface to retreive the parent dataset ID from an image ID, but can not seem to find much by the way of documentation for this functionality. I've figured out how to search by image filename content, as in:

Code: Select all
omero search Image *.tif


But I can not figure out how to find an image from ID, much less it's parent directory.

Is this functionality supported?
gregj
 
Posts: 1
Joined: Tue Feb 23, 2016 2:11 am

Re: Searching for IDs using the Command Line Interface

Postby jmoore » Wed May 18, 2016 6:18 pm

Try:

Code: Select all
omero hql -q "select d.id, d.name from Dataset d join d.imageLinks il where il.child.id = 1884807"


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: Bing [Bot] and 1 guest

cron