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

Why not take scipy implementation of Pearson correlation for computing lineage drivers? #1231

Open
VladimirShitov opened this issue Oct 22, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@VladimirShitov
Copy link

Hi! Thanks a lot for your tool, I find it very useful and easy to use. I noticed that in the code for computing correlation, both Fisher's method and permutation test approaches are implemented manually. Is there any reason not to use scipy implementation? As far as I understood from their documentation, it uses the same transformation for Fisher's test, also allows permutation test, and is many times tested by the community.

@VladimirShitov VladimirShitov added the question Further information is requested label Oct 22, 2024
@WeilerP
Copy link
Member

WeilerP commented Oct 22, 2024

Correct me if I'm wrong, @michalk8, but it's for performance reasons, right? Last time I checked, Scipy doesn't cope well with computing many pairwise correlations, etc.

@michalk8
Copy link
Collaborator

Correct me if I'm wrong, @michalk8, but it's for performance reasons, right? Last time I checked, Scipy doesn't cope well with computing many pairwise correlations, etc.

Yes, that's correct.

@VladimirShitov
Copy link
Author

Interesting, thanks! Could you also add support for missing values? I sometimes have them in my data when working with patient-level cell-type pseudobulks instead of single-cell data. If a sample doesn't have a particular cell type, it results in missing values. scipy allows to omit them and calculate the correlation, but here, I didn't find such an option.

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

No branches or pull requests

4 participants