-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Feature] Allow two separate categories of shapes to be written to Xenium Explorer #182
Comments
Yes indeed we could add the nuclei slot, but we would still not be able to display any type of shape (and limited to the number of 2 layers). Therefore, for more advanced users, I recommend using What do you think of Napari? Would you still prefer the Xenium Explorer or it suits your needs? |
I think if one does analysis Napari is probably the way to go in the future. However, I like Xenium explorer for the type of collaborator / colleague that would struggle to install Python. In that setting I had it happen that I reprocessed their Xenium output with Sopa and they were disappointed that the Nuclei were gone. Is their documentation somewhere on the Xenium explorer formats? |
Thanks for the context, I totally understand I could add the nucleus segmentation to the Xenium Explorer, but it assumes that the user is running both nucleus and cell segmentation using Sopa, which is (I believe) not the case for 99% of the users. Do you already have both layers, i.e. nucleus and cell segmentation using Sopa? If yes, how did you proceed? Like two round of cellpose segmentation with different parameters I imagine You can find the documentation of the Xenium Explorer inputs here, but it's not detailed in-depth |
Yes I added another round of segmentation to the Snakemake. I am actually working on polishing the workflow as a small part of an upcoming publication. I think that the study of subcellular RNA patterns is also gathering some interest e.g
and there it is necessary to have both nuclei and cell segmentation. Would it be a lot of effort to add an optional parameter to sopa explorer that writes another shape key from the Spatialdata object to the nuclei slot? |
And have you found a way to ensure the segmentations are paired, i.e. one shape from the nucleus segmentation is assigned to exactly one shape from the cell segmentation? Regarding adding the nucleus, I think it shouldn't be too complex, although I don't have a lot of time to prioritize this right now... If you want to do a PR, I would be happy to review it, else I can add the feature myself but I can't tell when it will be done! |
I am using geopandas I will look into a PR in the next couple of months, thank you! |
Great, that sounds good, I'll be happy to review the PR! |
The default Xenium output included sergmented nuclei and cells that can be observed in the Explorer.
With sopa you are able to segment arbitrary shapes: cells, nuclei, organelles.
However it is currently not possible to add more than one type of shape to the Xenium explorer with Sopa.
It would be cool to allow the user to write arbitrary shapes to the Xenium explorer "nuclei slot"
The text was updated successfully, but these errors were encountered: