Open PresageMicah opened 2 years ago
Thanks @PresageMicah for the detailed description - in our past experiences with CZI files, we needed to add the --flip-y
flag to the ashlar call as different vendors place the origin of stage coordinate differently.
--flip-y
flag
Thanks @Yu-AnChen for the quick response! I re-ran it with that flag and got the same problem, though I can see that the pattern is slightly different:
Thanks for the quick check. The other two parameters I would suggest trying are --filter-sigma 1
and -m 30
in addition to the --flip-y
. For testing, you could have ashlar output only the DAPI channels, for example --output-channels 4
To put it all together
ashlar "c:\temp\ashlar\data\4420-cropped.czi" "c:\temp\ashlar\data\4610-cropped.czi" --align-channel 4 --output-channels 4 --flip-y --filter-sigma 1 -m 30
This closed issue (#92) is relevant.
Another possibility could be that there's a bug in reading pixel data through BioFormats - if you're able to share the CZI files with us (maybe send the download link to my or @jmuhlich's email) we'll inspect them.
Thanks @Yu-AnChen for reviewing our files and providing your insights over email. We're still narrowing it down, but I thought I'd summarize our conversation for anyone else encountering the same issue.
It doesn't seem to be a problem with corruption - every scan from this scanner that I have tested has this problem and they are all viewable in the ZEN viewer.
However, it does seem to be a problem with accessing the raw FOV data from the CZI scans, which ASHLAR needs instead of the autostitched mosaic generated by ZEN. I'm wondering if this is an issue with our particular scanner, or perhaps just our scanner configuration, and I'm reaching out to Zeiss support for more information.
Background
I'm attempting to use ASHLAR 1.15.2 on a couple Zeiss (CZI) 5-channel whole slide images. However, the results are showing strange tiling issues, basically sparse tiles with no data in between. I'd love some advice to troubleshoot this issue, or, if this is due to a bug in ASHLAR, I'm happy to help investigate.
Also, while running ASHLAR, I received some warnings ("WARNING: Stage coordinates' measurement unit is undefined; assuming μm."), and I'm wondering if that's the issue, and if there is a workaround. I'd also appreciate any additional explanations about those warnings. Full console output below.
Image output
Here's the zoomed-out output from running two whole slide images (screen clip is from Fiji, which can barely handle this gigantic image):
And here I'm using much smaller exported ROIs from the same images (screen clip is from ZEN, blue for the first image's DAPI channel and red for the second image's DAPI channel, though all channels from each image are contained within those respective rectangles):
Console output
Here's the full console output of my ASHLAR run on the exported ROIs that yielded the second image above. Both images have 5 channels and their last channel is DAPI, so I entered
--align-channel 4
to reference that DAPI channel using ASHLAR's 0-based indexing.Thanks for any assistance on this matter. I'm just taking off on vacation so I won't be able to get to responses right away, but I'll follow up on Monday, May 23rd.