We're Hiring!

Retrieve images uploaded via pattern file

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.

Retrieve images uploaded via pattern file

Postby derekeh » Tue Dec 11, 2018 9:32 am

Hi,
Now that I am able to upload my time sequence using a pattern file
(thank you: https://www.openmicroscopy.org/community/viewtopic.php?f=6&t=8616&p=20245&sid=b1f07b48393f60159196ba8650caa023#p20245)
BrowseFacility::getImagesForDatasets will only return the pattern file uploaded for that dataset.
In the filesystem I can see all the associated images that were uploaded to the datadir/ManagedRepository/... but wondered if there was a function available which would return all these images that were uploaded via the pattern file?

Whilst the pattern file allows the user to view the time sequence, I need to be able to offer all the original files for download.

Thanks
Derek
derekeh
 
Posts: 31
Joined: Mon Feb 12, 2018 12:00 pm

Re: Retrieve images uploaded via pattern file

Postby mtbc » Tue Dec 11, 2018 9:49 am

Dear Derek,

Just to clarify: are you hoping for OMERO clients to show the different planes also as separate images with separate thumbnails or, as I suspect, is it more than you want to be able to download the files that were originally uploaded?

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

Re: Retrieve images uploaded via pattern file

Postby derekeh » Tue Dec 11, 2018 9:58 am

Yes, the latter.
Download the files that were originally uploaded.
Derek
derekeh
 
Posts: 31
Joined: Mon Feb 12, 2018 12:00 pm

Re: Retrieve images uploaded via pattern file

Postby Dominik » Thu Dec 13, 2018 11:46 am

Hi Derek,

in the OMERO sense the "Image" is the whole thing, the image which you created with the pattern file. You can't get the individual parts as single "Image" instances.

If you want to get the paths of the image files in the managed repository: That's not directly implemented in the Java Gateway yet. But you can get these paths via the QueryService, here's an example for how to do that: https://gist.github.com/dominikl/46894a ... e3ab04ae71

If you want download the images files: The 'downloadImage' method in the 'Transferfacility' should be able to do that https://downloads.openmicroscopy.org/om ... ility.html , e.g. something like:
Code: Select all
TransferFacility tf = gateway.getFacility(TransferFacility.class);
tf.downloadImage(ctx, "/home/user/Downloads", imageId);


Kind Regards,
Dominik
User avatar
Dominik
Team Member
 
Posts: 149
Joined: Mon Feb 10, 2014 11:26 am

Re: Retrieve images uploaded via pattern file

Postby derekeh » Fri Dec 14, 2018 8:24 am

Hi Dominik,
That's exactly what I was looking for.
Many thanks.

Derek
derekeh
 
Posts: 31
Joined: Mon Feb 12, 2018 12:00 pm


Return to Developer Discussion

Who is online

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

cron