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

Topic-trait correlation heatmap #23

Closed
adamklie opened this issue Aug 21, 2024 · 2 comments
Closed

Topic-trait correlation heatmap #23

adamklie opened this issue Aug 21, 2024 · 2 comments
Labels

Comments

@adamklie
Copy link
Collaborator

This is something that @nargesr implements in Topyfic: https://github.com/mortazavilab/Topyfic/blob/main/Topyfic/analysis.py#L438.

Correct me if I'm wrong, but it looks like it tries to binarize all categorical traits you pass in and calculate a spearman correlation between those binary vectors and the cell participation vector for each program. It also tries to remove noise from the bottom of the participation vector using the min value as a threshold.

I like the idea of having some kind of global view of the associations between each program (x-axis) and covariates (y-axis). A heatmap seems a logical choice, but we should come to an agreement on what the statistic we want to show is and how we want to present it. Spearman could make sense on continuous variables, but maybe kruskal-wallis makes more sense for categorical variables.

Whatever we end up, we should probably implement it in plotly (shouldn't be too hard)

@adamklie
Copy link
Collaborator Author

adamklie commented Sep 5, 2024

Have a working implementation of this in: #35

  • Should compute this in evaluations though, not on the fly

@adamklie
Copy link
Collaborator Author

Addressed in #45. Closing for now

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

No branches or pull requests

1 participant