Home > Community > DoHeatmap Hierarchical Clustering Seurat
Upvote

26

Downvote
+ R
+ Bioinformatics
Posted by
Oliver Lucas

DoHeatmap Hierarchical Clustering Seurat

Austin Mccormack  Follow

You need to order the marker matrix (e.g. by avg_logFC) before calling DoHeatMap.

library(dplyr)all.markers <- FindAllMarkers(object = obj)top20 <- all.markers %>% group_by(cluster) %>% top_n(20, avg_logFC)DoHeatmap(object = obj, genes.use = top20$gene, slim.col.label = TRUE, remove.key = TRUE)

More

Upvote

VOTE

Downvote