- New User
- Last seen:
- 1 year, 10 months ago
- 2 years, 6 months ago
Posts by sisterdot
Comment: C: Pheatmap cluster number labels
... and for the complete ordered matrix with cluster info: mat.order <- cbind(mat[c(res$tree_row[["order"]]),res$tree_col[["order"]]],cluster=cutree(res$tree_row, k=k.fix)[res$tree_row[["order"]]]) ...
... you approach was very close to what i think you need to do (at least using pheatmap_1.0.8). the last step will give you the cluster assignment in the right order. library(pheatmap) k.fix=4 mat = matrix(rnorm(200), 20, 10) res<-pheatmap(mat, cutree_rows=k.fix,show_rownames = T) ...
Latest awards to sisterdot
No awards yet. Soon to come :-)
Powered by Biostar version 2.3.0
Traffic: 844 users visited in the last hour