get the vector of leaf's names from object "dendrogram" generated by cut()
1
0
Entering edit mode
Ren Na ▴ 250
@ren-na-870
Last seen 9.6 years ago
Hi, I try to get the vector of leaf's names from object "dendrogram" generated by cut(). For example, I have a matrix mat(100*10) rownames(mat) <- 301:400 dianaGenes <- diana(mat) mydendrogram <- as.dendrogram(as.hclust(dianaGenes)) dianaClusters.h3 <- cut(mydendrogram,h=3) >From here, I tried to get the vector of leaf's names of subtree( which are corresponding to rownames of mat) from dianaClusters.h3$lower[[3]], but I couldn't figure it out. Then I can use this vector to subset original matrix mat. Any help is appreciated. Thanks, Ren [[alternative HTML version deleted]]
• 1.0k views
ADD COMMENT
0
Entering edit mode
nachocab • 0
@nachocab-10078
Last seen 8.0 years ago

Use labels(mydendrogram)

ADD COMMENT

Login before adding your answer.

Traffic: 679 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6