We're Hiring!

Is there an upper limit for the number of ROIs for iviewer?

General user discussion about using the OMERO platform to its fullest. Please ask 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

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

Is there an upper limit for the number of ROIs for iviewer?

Postby Kouichi_C_Nakamura » Tue Nov 20, 2018 8:10 pm

Hello.

I have prepared a stack of 35 images containing overall 2819 ROIs.
They were prepared as OME-TIFF files per Z slice.

I was able to confirm that those ROIs were associated with specific Z slices when opened with Fiji by using Bio-Formats Importer.

However, in the iviewer of OMERO server (https://demo.openmicroscopy.org/), while it says there are 2819 ROIs, the ROI list on the righthand panel show only a subset. And while all the items on the list were ticked, clearly a lot of them are not found on the current Z slice. Moreover, each Z slice shows only ~20% of ROIs that they are supposed to show (the number of ROIs shown per slice in Fiji was a lot more).

I suspect that in iviewer implementation, there might be an upper limit for the number of ROIs that can be handled. I even suspect that the value might be 500, because in one occasion iviewer showed 500 ROIs instead of 2819 ROIs.

If there is an upper limit, can I modify it?

Or should I just give the idea of uploading the whole data as a huge Z stack and treat individual Z slice independently? The advantage of the former data format is that I can use Z slider, which is much faster than clicking the thumbnails. See http://www.openmicroscopy.org/community ... 602#p20089

Best,
Kouichi
Kouichi_C_Nakamura
 
Posts: 165
Joined: Thu Oct 19, 2017 1:35 pm

Re: Is there an upper limit for the number of ROIs for iview

Postby mtbc » Wed Nov 21, 2018 8:47 am

Dear Kouichi,

Your suspicion is right on target: see https://trello.com/c/LdGRTtZI/7-omeroiv ... l-blockers. There is a omero.client.viewer.roi_limit configuration property but OMERO.iviewer always limits to 500. This is certainly an issue that's on our radar: we agree that it needs fixing.

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

Re: Is there an upper limit for the number of ROIs for iview

Postby waxenegger » Wed Nov 21, 2018 9:14 am

Hello Mark and Kouichi,

I believe if you increase "omero.web.api.max_limit" (which is 500 at the moment) you can go up to 5000.

The above limit will always be applied regardless of what iviewer sets when it requests:

https://github.com/openmicroscopy/openm ... ery.py#L83

From the code it seems that 5000 is set as the upper limit:
https://github.com/ome/omero-iviewer/bl ... nfo.js#L41

It's worth a try at least ;-)
In terms of performance the one thing that might slow things down is actually the table, more so than the display of the shapes in openlayers.

Harald

PS: Failed to mention (as a word of caution) that this is the web api request limit. So it is going to apply to other web api requests if they themselves don't have a given limit/page size set.
User avatar
waxenegger
 
Posts: 12
Joined: Wed May 20, 2015 10:20 pm

Re: Is there an upper limit for the number of ROIs for iview

Postby Kouichi_C_Nakamura » Wed Nov 21, 2018 11:21 am

Thank you both guys.

The main reason I wanted to show the data as Z stack was that the Z slider response was much faster than thumbnails. The data are not actual Z stack per se. They are consecutive sections of mouse brain with a regular interval.

But now I see the downside of this approach as well. Even if I manage to set the upper limit to 5000 somehow, the table view on the right-hand side won't just show the ROIs associated with the current Z slice. So it will be difficult to find the relevant ROIs in the table; eg. when section #20 (Z =19) is presented, the table shows a lot of ROIs in other Z slices (other sections). And there won't be a simple solution to this issue, I suppose.

So now I'm inclined to get back to the original plan of submitting individual images separately.
Kouichi_C_Nakamura
 
Posts: 165
Joined: Thu Oct 19, 2017 1:35 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest