-
Notifications
You must be signed in to change notification settings - Fork 22
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 & Bug] Xenium explorer displaying both Cellpose and Baysor boundaries #120
Comments
Hello @lguerard, Regarding the cells outside of the sample, this is typically a cellpose artefact. You can easily remove this by a filter on the DAPI intensity, there is a parameter for that called |
Thanks for the tip with the And super for the Xenium, please let me know if I can help/do anything. Thanks again ! |
Hello @lguerard, I saw Luca recommended trying Napari. Did you try that? Napari is more flexible than the Xenium Explorer, and better for developers. The Xenium Explorer is mainly used for PI who prefer a simple and user-friendly interface. Let me know if it works for you and if you still need the feature in the Xenium Explorer! |
Hello @quentinblampey, I have started looking into using Napari instead yes, I still need to figure out how best to load the different layers. Once I have this, I can report back here and maybe do a PR to complete the documentation ? :) |
Yes, please report back! Regarding the documentation, I was actually intending to update it to mention Napari in the tutorials |
Hi @quentinblampey, I ran Xenium using 10X shared datasets but get error that I never see when I run merscope data. I found in the .zarr folder-shapes: no cellpose_boundaries generation, but as you see I ran cellpose prior to those step. The error showed in CLI after run "sopa aggregate C:/Users/hekun/Downloads/Xenium_V1.zarr --gene-column feature_name --average-intensities --min-transcripts 5" : ValueError: sdata object has no valid segmentation boundary. Consider running Sopa segmentation first. How was the issue be resolved? Thansk very much! sopa read C:/Users/hekun/Downloads/Xenium_V1 --technology xenium sopa patchify image C:/Users/hekun/Downloads/Xenium_V1.zarr --patch-width-pixel 6000 --patch-overlap-pixel 150 sopa segmentation cellpose C:/Users/hekun/Downloads/Xenium_V1.zarr --diameter 30 --channels DAPI --flow-threshold 2 --cellprob-threshold -6 --model-type cyto3 --min-area 400 --clip-limit 0.2 --gaussian-sigma 1 sopa patchify baysor C:/Users/hekun/Downloads/Xenium_V1.zarr --config-path C:/Users/hekun/sopa/workflow/config/xenium/xenium.toml --patch-width-microns 1200 --patch-overlap-microns 20 |
Hi all,
I just run sopa on a Merscope data and ran both Cellpose and Baysor to improve the segmentation.
My SpatialData object contains all the results as you can see here :
However, when I run
sopa.io.write(os.path.join(result_folder, basename + ".explorer"), sdata, image_key, gene_column=gene_column)
, Xenium only shows cells ascellpose_boundaries
.I even tried
sopa.io.write(os.path.join(result_folder, basename + ".explorer"), sdata, image_key, shapes_key = 'baysor_boundaries', gene_column=gene_column)
but Xenium still shows the same.shapes_key
would display everything.Thanks for your help !
The text was updated successfully, but these errors were encountered: