[BioC] Fwd: heatmap.2 question
Wang, Li
li.wang at ttu.edu
Thu May 24 17:37:46 CEST 2012
Hi, Alyaa
Assuming that you have an object "hr" which clusters rows by spearman correlation as distance method,
hr <- hclust(as.dist(1-cor(t(y), method="spearman")), method="complete"), y is your matrix here.
hr$labels[hr$order]
it will print the row labels in the order they appear in the tree.
I donot know if this is what you want.
Best
Li
________________________________________
From: bioconductor-bounces at r-project.org [bioconductor-bounces at r-project.org] On Behalf Of Alyaa Mahmoud [alyamahmoud at gmail.com]
Sent: Thursday, May 24, 2012 10:04 AM
To: bioconductor at r-project.org
Subject: [BioC] Fwd: heatmap.2 question
Hi All
How can I possibly extract the clusters by rows from a heatmap generated by
heatmap.2 function. i.e. the heatmap is generated with colouring for every
cluster of rows and I want to retrieve the members of each cluster.
Any clue would be much appreciated
Thank you very much
Alyaa
KAUST/AUC Marine Genomics Project
American University in Cairo
Egypt
2918
--
Alyaa Mahmoud
"Love all, trust a few, do wrong to none"- Shakespeare
--
Alyaa Mahmoud
"Love all, trust a few, do wrong to none"- Shakespeare
[[alternative HTML version deleted]]
_______________________________________________
Bioconductor mailing list
Bioconductor at r-project.org
https://stat.ethz.ch/mailman/listinfo/bioconductor
Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
More information about the Bioconductor
mailing list