labsyspharm / scimap

Spatial Single-Cell Analysis Toolkit
https://scimap.xyz/
MIT License
71 stars 24 forks source link

How can I get the test p value of two groups when comparing the distances between two cell types #75

Open sailseem opened 11 months ago

sailseem commented 11 months ago

Certainly! Here's a revised version of your email:

Dear Developer,

I've been using the sm.pl.spatial_distance function and it's been working seamlessly for comparing distances within groups:

sm.pl.spatial_distance(adata, method='distribution', distance_from='CD8T', distance_to='APCs', phenotype='Label', imageid='group')

However, I'm looking to extract the statistical p-values. More specifically, is there a way to base these calculations on each patient rather than each ImageID?

ajitjohnson commented 8 months ago

I apologize for missing this issue. For some reason, I have not been receiving notifications for the issues raised in this channel. Does the issue still persist, and would you need help? Thank you.