AllenInstitute / scrattch.mapping

Genearlized mapping scripts for RNA-seq and Patch-seq data
8 stars 2 forks source link

standard deviation is zero Warning #9

Closed scseeman closed 1 year ago

scseeman commented 1 year ago

Using correlation mapping on a subset of the original MERSCOPE dataset I received the following warning. Mapping completed and results seemed ok.

[1] "Correlation-based mapping" Warning message: In cor(as.matrix(test.dat), cl.dat) : the standard deviation is zero

jeremymiller commented 1 year ago

I think you can ignore this warning. For me this often happens with sparse data (e.g., if there is exactly 1 non-zero value). It may mean that for some cells the correlation will be unreliable, but if the data is that sparse, then ANY method for mapping is unreliable. If your data is NOT sparse, then let's leave this issue open.

From: Stephanie Seeman @.> Sent: Wednesday, March 29, 2023 10:52 AM To: AllenInstitute/scrattch-mapping @.> Cc: Subscribed @.***> Subject: [AllenInstitute/scrattch-mapping] standard deviation is zero Warning (Issue #9)

Using correlation mapping on a subset of the original MERSCOPE dataset I received the following warning. Mapping completed and results seemed ok.

[1] "Correlation-based mapping" Warning message: In cor(as.matrix(test.dat), cl.dat) : the standard deviation is zero

- Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAllenInstitute%2Fscrattch-mapping%2Fissues%2F9&data=05%7C01%7C%7C9555f1ce5daa447a3e5108db307e43d8%7C32669cd6737f4b398bddd6951120d3fc%7C0%7C0%7C638157091098344664%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=T3v0doWauNRsWN9j6Tn2K%2B%2BooKxH1tc1xMbf4tOAayw%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGCOKV3KPHRF2W5GXZS7OFTW6RZDFANCNFSM6AAAAAAWMGRKLA&data=05%7C01%7C%7C9555f1ce5daa447a3e5108db307e43d8%7C32669cd6737f4b398bddd6951120d3fc%7C0%7C0%7C638157091098344664%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fMSnjM6vFGIJL%2BEBxM4HJv2RwOLIWQD0iiRIkaY9fJQ%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

scseeman commented 1 year ago

ok, I think this would be considered "sparse", it's only 60 genes. I'll close