squidpy icon indicating copy to clipboard operation
squidpy copied to clipboard

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

Open Qirongmao97 opened this issue 2 years ago • 1 comments

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!

Qirongmao97 avatar Dec 12 '23 14:12 Qirongmao97

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

giovp avatar Apr 25 '24 08:04 giovp