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

Do we need to normalization and scaling before calculating spatial autocorrelation? #779

Open
Qirongmao97 opened this issue Dec 12, 2023 · 1 comment
Assignees

Comments

@Qirongmao97
Copy link

Qirongmao97 commented Dec 12, 2023

Hi Squidpy developers:

I am looking for using squidpy to measure the spatial autocorrelation (like Moran's I ) for genes in spatial dataset.

I was wondering if the result would be different between using raw data vs normalized (and scaled) as input?

For my understanding, is that make more sense to use the normalized gene expression data so we could reduce the sequencing depth effects in different spatial regions?

Thanks a lot!

@giovp
Copy link
Member

giovp commented Apr 25, 2024

Hi @Qirongmao97 , yes you would need to normalize the data before spatial autocorrelation. Scaling is not necessary but result might slightly vary between just normalized (however you wish to do it) and normalized + scaled, HTH

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

2 participants