您如何从cutree_rows = 3
in生成的行组中提取基因/观察值pheatmap
?会是obj$tree_row$...
?
obj <- pheatmap(mat, annotation_col = anno, fontsize_row = 10, show_colnames = F, show_rownames = F, cutree_cols = 3, cluster_cols = FALSE, color = col, scale = 'row',cutree_rows = 3)
obj$kmeans$cluster
我已经看到,如果您通过运行这样的方式应用 k 均值,您可以找到基因列表,有没有办法在热图中保留聚类但减少观察次数?