Skip to content
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

qTune/spatialCluster do not identify neighbours #120

Open
drighelli opened this issue Jan 22, 2024 · 3 comments
Open

qTune/spatialCluster do not identify neighbours #120

drighelli opened this issue Jan 22, 2024 · 3 comments

Comments

@drighelli
Copy link

Hi,

I'm trying to apply your method to some Visium datasets, but it always says returns 0 neighbours out of #spots.

There it is a reproducible example:

library(TENxVisiumData)
library(BayesSpace)
hbc <- HumanBreastCancerIDC()
hbc <- hbc[,hbc$sample_id=="HumanBreastCancerIDC1"]
hbc$row <- spatialCoords(hbc)[,2]
hbc$col <- spatialCoords(hbc)[,1]
hbc<-spatialPreprocess(hbc, platform="Visium")
hbc <- qTune(hbc, qs=seq(2, 20), platform="Visium", d=7)

Any clues on how to fix this?

Thank you in advance!

Dario

@edward130603
Copy link
Owner

Hi Dario, BayesSpace uses both the array and pixel coordinates to find neighbors. Array coordinates go to row/col and pixel coordinages go to imagerow/imagecol.

@DanielZucha
Copy link

Hello,
Thanks for the great package. I ran to the same of identifying 0 neighbors of #spots when analysing non-commercial ST technology. I overcame this issue by changing the ratio in the coordinate system (e.g. sce.spatial$row <- (sce.spatial$y_coord / 40) %>% round()), followed by screening for the number of neighboring spots with the find_neighbors() function.

Best,
Daniel

@mingYi-ch
Copy link

Hi Dario, BayesSpace uses both the array and pixel coordinates to find neighbors. Array coordinates go to row/col and pixel coordinages go to imagerow/imagecol.

Hi, I tried both, but still Neighbors were identified for 0 out of 2488 spots, My neighouring radius is sqrt(9500).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants