-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Micromanager: reader crashes with stack format and large datasets #2308
Comments
Hi @julou , many thanks for reporting this issue. We are currently investigating it together with @bramalingam following the workflow you recommended above i.e. creating a large multi-dimensional acquisition using the demo config of MM 1.4.22. This initial investigation raised a couple of questions regarding your issue:
As always, we'll keep you posted of our progress and will let you know if we need sample files to reproduce your issue. Best, |
Hi Sebastien & Balaji, Thanks a lot for taking this into consideration!
yes
either the fiji plugin or
using the CL tools, but my report was imprecise, it's not the first file but the first position of the dataset that is recognised by the OME-TIF reader (and all its files have the metadata if the dataset is split). So you need to create a large dataset with multiple positions if you want to see the MM reader being called… Talking with MM devs, I realised that it's not always the first position:
Best, |
Hi @julou, thanks for the quick answer and the additional information. We will regenerate multi-position large datasets, test them and report back. |
Hi Thomas, after some more investigation, I was able to reproduce part of your issue. Using the demo config, I generated the following output
I was able to reproduce the inconsistency in reader selection depending on the selected file. It turns out there is nothing wrong with the fileset and the way the metadata file is referred to from the point of view of the OME Data model:
Instead, this points to a regression in the Answering one of your earlier questions, it is possible to use the Bio-Formats command line tools and impose the reader. For instance to read any position using the
Best, |
Hi Sebastien, Thanks for your efforts and sorry for the delayed answer. I was off for a few days.
Great. I assume that you were able to reproduce that the current MMreader does not concatenate the different files of one position. Any progress on this?
OK. If I get it right, it means that a MM file will be open using the MM reader as long as the *_metadata.txt file is found along with it and using OME-TIF reader otherwise. Correct?
This is great! :) Thanks, |
Hi Thomas,
Yes generating a set of large datasets using the demo config was enough to reproduce the
This PR should let the reader implementation match the description made in https://www.openmicroscopy.org/site/support/bio-formats5.1/formats/micro-manager.html i.e. use only OMETiffReader or MicromanagerReader.
The relevant line is https://github.com/openmicroscopy/bioformats/blob/v5.1.8/components/bio-formats-tools/src/loci/formats/tools/ImageInfo.java#L356. Minimally, what you need to pass is the string prefix of the reader e.g.
Best, |
Looks like there's progress coming ahead! :) I tried to wrap my head around the expected behaviour you are currently working on:
Is it realistic to expect the MMreader's bug with datasets split over several files to be addressed soon? Also, I put together a beanshell script to open a given position only from one MM dataset. However, when I try to force using the OMETiffReader (hoping to get it to work with the master file including OME metadata or any other file with a binary only tag), I get an error. I assume that this comes from the issue fixed in #2320, correct? Below is the script, any feedback welcome. Thanks,
|
Well, I guess ideally it should open the series corresponding to the file unless the "open all series" option has been enabled… |
Hi, answering some questions unrelated to the discussion opened in #2309. It looks that the MicromanagerReader will initialize the files in one position only in the case of multiple positions, independently of the input file:
As mentioned above, the bug for the large files split into several TIFF files has been captured and is definitely on our roadmap for 5.2.0. As explained in our Bio-Formats status blog post, most of our resources are currently focused on the model changes with bug fixing being currently lower priority. Regarding your error when forcing the usage of the OMETiffReader, do you have a stacktrace? It might well be fixed by #2320 which will be released as part of the upcoming Bio-Formats 5.1.9. Best, |
Hi Sebastien, hi all,
I'd be curious to know if any progress has been made on this.
Looking more into this taught me that I was mistaken (by the way surprised that nobody here corrected me when I asked the question): So I rephrase my question: how can I force using a specific reader with the java api and BF.openImagePlus? (I guess it should be by specifying an option of ImporterOptions). Thanks a lot for your support. Best, |
Hi Thomas
Unfortunately no, we spent the last few months finalizing our breaking model API changes.
Understood. As you mention OMERO, this bug fix is scheduled for the Bio-Formats 5.2.x series which will require an OMERO 5.3.x installation in order to achieve the workflow you described.
After double verification, you are absolutely correct with the list of available options being described here.
As it stands, the ImageJ plugin creates readers using LociPrefs.makeImageReader() and there is no option to construct a given reader of a given type like the command-line tools. That being said, would it be sufficient for you to “disable” one or several readers? The above method uses the ImageJ Prefs API to check for disabled readers - see LociPrefs.isReaderEnabled(). A corresponding call to |
Hello,
Following your fixes to parse config-specific metadata in MM datasets, I realised that I focused on providing small datasets (for obvious practical reasons). Hence the current MM reader (5.1.8) crashes when the dataset is split over several tiff files.
In more details:
I would be happy to provide you with a demo large dataset, or you can easily create one using MM's demo config and the Multi Dimensional Acquisition window (select e.g. enough time points so that the dataset size is >4.7gb).
Also, as far as I understand it, it means that there is no easy way to open the first position of a dataset (because when this path is given as input, the OME-TIF reader is triggered which will load the full dataset). Although I don't understand how the reader selection works (but that you want to keep a way to trigger the OME-TIF reader for such datasets), I find this very cumbersome! What would be the other possible designs?
Thank you in advance for your attention. Best,
Thomas
The text was updated successfully, but these errors were encountered: