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

Consensus heatmap? #2

Open
jarbet opened this issue Feb 25, 2023 · 1 comment
Open

Consensus heatmap? #2

jarbet opened this issue Feb 25, 2023 · 1 comment

Comments

@jarbet
Copy link

jarbet commented Feb 25, 2023

A cool feature to add to the package would be a consensus heatmap to visualize the consensus matrix, and you could add a covariate bar for cluster assignments.

For example, something similar to this (example from the cola R package):

  • so the main heatmap would show the consensus probabilities for all pairs of subjects (high is blue, low is white)
  • Then you can add a covariate bar for the cluster assignments (see the "Class" bar on the left, you can ignore the other bars)
  • Ideally, you want to see diagonal dark blue boxes corresponding to the number of clusters, and the off-diagonals should be white

image

Then it would be really cool to be able to make the heatmap for a different number of cluster assignments (e.g. ranging the total number of clusters from 2 to 6), like here:

  • Unlike cola, the consensus matrix for IMPACC will be the same for all K, but nevertheless it would still be cool to add the cluster-assignments for varying K to the heatmap. Then maybe such plots could help the user select the best value of K.
  • You might need to sort the consensus matrix in a clever way for a given value of K (e.g. sort patients by cluster assignment, for example) in order to see the clustering patterns better

image

@luqingan
Copy link
Collaborator

luqingan commented Mar 2, 2023

Hi @jarbet ,

Thanks a lot for the great suggestion! I'll work on it.

Best,
Luqin

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

No branches or pull requests

2 participants