-
Notifications
You must be signed in to change notification settings - Fork 0
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
Quick R implementation #3
Comments
Glad to hear it's useful! |
Thank you @kmaherx for the development of SPIN and the elegancy by which you solve this spatial problem! I am hoping to incorporate SPIN in our analysis since I believe it would make our celltyping more robust. As far as I understood it now, you want to smooth before integration. I have a CosMx slide with multiple tissues on a single slide and thus in a single Seurat. Would you then split the Seurat based on the slides, do the smoothing, and then proceed with integration. Are there preferred integration methods like Harmony? I am currently working with NormalizeData from Seurat 5, since SCTransform gives trouble downstream with merging of the split Seurat and having different SCTransform models. Considering we sometimes encounter sparse cell detection, would you further change SPIN on this? I could assume that spare cell identification would lead to neighbours at a greater distance, thus leading to less accurate subsampling if the number of neighbours is kept constant. Would it make sense to sample less, or sample only something within X distance to the centre? |
I have updated the R implementation kindly provided by @NKalavros .
Now requires library(RANN) as well.
|
Hi Kamal,
I saw your talk and I really liked the simplicity and scalability of the method you described. I also tried it on some other tissues except brain and it seems to be actually capturing structure! Since I mostly use R, I transcribed the one sample (no harmony) implementation to it and it scales pretty well.
Leaving this here in case you're interested.
Cheers!
The text was updated successfully, but these errors were encountered: