-
Notifications
You must be signed in to change notification settings - Fork 3
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
GEX-Based Segmentation "Misalignment" #40
Comments
Also, to clarify, I'm running
|
The H&E segmentation will almost always look perfectly aligned, as it's visualising the segmentation of a morphology image back on the same image it's based on. The GEX segmentation makes use of the same spatial coordinate system on the H&E for visualisation, but the segmentation works on the actual expression values from the file. As such, if you've got some noise in the data, then you can get objects reflecting on bits of RNA where they shouldn't be. I'd mainly recommend following the tutorial notebook and taking a look at the count totals via Also that is an oddly particular mpp you've got. |
Yeah - I figured given that the deep-learning based HE nuclei identification will be invariant to any sort of CytAssist/HE alignment and really only evaluates StarDist itself, this is more along the lines of a SpaceRanger misalignment I tried playing around with a few alignments in Loupe and it seems like I can find a pretty good alignment. But there is always the visual 'artifact' of the resolution difference between the HE/CytAssist images making me think that there is an issue. I'm trying another run or two of SpaceRanger and playing with the outputs to see if the alignment can be better. But, in and of itself, I think that the sample quality was pretty low. I'm new to the spatial analysis, so I've got some learning to do. I'll play around more with this and see what I can find! |
Hi!
Thank you so much for the wonderful package. I'm just getting underway learning the tidbits here and there with the package and Visium HD analysis itself. However, I'm running into some weirdness regarding the GEX-based segmentation specifically, which could just be due to either poor alignment or poorly prepared libraries.
Take, for instance, the following ROI:
The HE-based nuclei identification looks good, but the GEX-based fluorescent identification seems A) misaligned and B) scaled incorrectly. I checked my mpp manually in qupath based on the HE image that was used as input to SpaceRanger.
Based on spaceranger output summary, i visually checked the alignment between the HE and the CytAssist image and the alignment looked perfect; the alignment between the total UMI count and the tissue image, at least for the 8um default SpaceRanger binned output, looked fine as well. I ran spaceranger both with and without exporting a manual alignment .json in Loupe Browser and the alignment didn't improve.
After attempting to bin_to_cell, it looks like the labels are still being thrown off by the GEX misalignment:
Do you perhaps have any idea what the origin of this alignment issue is? Intuitively it feels like a count matrix-he image misalignment, so maybe the issue stems from the grid_image I'm generating from the count matrix? Happy to elaborate - and apologies if the question is poorly worded!
The text was updated successfully, but these errors were encountered: