-
Notifications
You must be signed in to change notification settings - Fork 6
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
Compatibility of ENACT with Visium HD Data in TIF Format #19
Comments
I noticed that while some datasets work fine with the ENACT software, others lead to execution failures irrespective of the file format (no matter the inputs image's format is TIF or BTF). I made multiple attempts with four different Visium HD datasets:
Request for AssistanceCould you please advise if there are specific steps I should follow or adjustments needed to make ENACT compatible with these datasets? Any guidance on how to resolve the IndexError and DataFrame issues would be highly appreciated. Thats wired.. |
I also get the same error: IndexError: index 0 is out of bounds for axis 0 with size 0 |
Hello, The current implementation assumes an H&E image format ((height, width, 3)), but IF images have a different channel ordering: (channels, height, width). This causes an issue in load_image(), where the cropping logic attempts to slice the channel axis instead of the spatial dimensions. Proposed Fix In pipeline.py#L290, update:
Additional Fix for StarDist Processing To properly run StarDist on IF images, update the segmentation step in pipeline.py#L355-L365 as follows:
Next Steps ENACT is currently optimized for H&E images, and IF image support will be improved in the next release. These changes should allow segmentation to run correctly on IF images in the meantime. Let me know if you need further clarification! |
ENACT version 0.2.2 now enables support for IF images: Please update the following new parameters accordingly:
|
Hello,
I am currently working with Visium HD data from 10x Genomics, specifically the Visium HD CytAssist Gene Expression Libraries of Human Lung Cancer IF. I noticed that the microscope images for some datasets are provided in TIF format instead of BTF.
I attempted to run the ENACT software with this TIF format data, but encountered an error which prevents successful execution. Here is the error message:
Could you please advise if ENACT is compatible with TIF format files from Visium HD datasets, or if there are specific steps I should follow to convert these files into a compatible format? Any guidance on how to resolve this IndexError would also be greatly appreciated.
Thank you for your assistance and for the development of this useful tool.
The text was updated successfully, but these errors were encountered: