Open anntzer opened 1 year ago
Thank you @anntzer for opening the issue and investigating the root cause, that is extremely helpful. This is perhaps something we can look at addressing alongside https://github.com/ome/bioformats/issues/4069 at the same time
Consider the test nd dataset provided at https://github.com/ome/bioformats/issues/4069#issue-1839504482. Fiji's bio-formats importer opens it correctly, and inspecting it e.g. with showinf indicates
Series count = 2
andImage count = 4
on both series, as expected. Yet, if one opens test.nd and directly edits the position names from "position_a" and "position_b" to e.g. "f1" and "f2", then the dataset is no longer loaded correctly by Fiji (in particular it seems that some of the tiff files just don't show up at all in the final dataset), and showinf reportsSeries count = 2
butImage count = 1
, together with a "RGB mismatch" warning. As far as I can see, this occurs because the position names match WELL_COORDS ("\\b([a-z])(\\d+)"
), ultimately leading to taking theisHCS = true
branch. I can understand that some degree of guessing based on filenames and position names is needed, but I would guess that theisHCS = true
branch could be skipped if 1) it leads to ignoring timepoints that are specified by the NTimePoints entry in the .nd file (and that are actually present), and/or 2) if it leads to RGB mismatched data (whereas the non-HCS interpretation is just fine).