Search
Question: Access the probe ids associated with each cluster
0
7.3 years ago by
Wendy Qiao360
Wendy Qiao360 wrote:
Hi all, I am doing a hierarchical clustering for 12,000 genes across 3 samples. The gene expression is stored in a matrix called 'Gexpr' which is a 12000 by 3 matrix. I plot the cluster using heatmap.2(Gexpr, Rowv=TRUE, Colv=FALSE,dendrogram="row",col=greenred(75),trace="none",dendrogram ="column") I was finding a way to access the probe id's for one of the clusters. Could anybody please give me some suggestions? Thank you very much, Wendy [[alternative HTML version deleted]]
modified 7.3 years ago by Steve Lianoglou12k • written 7.3 years ago by Wendy Qiao360
0
7.3 years ago by
Denali
Steve Lianoglou12k wrote:
Hi Wendy, On Sun, Mar 27, 2011 at 7:43 PM, Wendy Qiao <wendy2.qiao at="" gmail.com=""> wrote: > Hi all, > > I am doing a hierarchical clustering for 12,000 genes across 3 samples. The > gene expression is stored in a matrix called 'Gexpr' which is a 12000 by 3 > matrix. > > I plot the cluster using > > heatmap.2(Gexpr, Rowv=TRUE, > Colv=FALSE,dendrogram="row",col=greenred(75),trace="none",dendrogram > ="column") > > I was finding a way to access the probe id's for one of the clusters. Could > anybody please give me some suggestions? The heatmap.2 function "invisibly" returns a list/structure with lots of stuff in it. Look in the "Value" section in the ?heatmap.2 help documentation -- I guess you're most interested in the rowInd and rowDendrogram stuff. Look through the documentation for ?dendrogram (and the stuff in the "See Also" sections), too. -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology ?| Memorial Sloan-Kettering Cancer Center ?| Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
Thanks a lot, Steve. This is really helpful. Wendy On 27 March 2011 20:30, Steve Lianoglou <mailinglist.honeypot@gmail.com>wrote: > Hi Wendy, > > On Sun, Mar 27, 2011 at 7:43 PM, Wendy Qiao <wendy2.qiao@gmail.com> wrote: > > Hi all, > > > > I am doing a hierarchical clustering for 12,000 genes across 3 samples. > The > > gene expression is stored in a matrix called 'Gexpr' which is a 12000 by > 3 > > matrix. > > > > I plot the cluster using > > > > heatmap.2(Gexpr, Rowv=TRUE, > > Colv=FALSE,dendrogram="row",col=greenred(75),trace="none",dendrogram > > ="column") > > > > I was finding a way to access the probe id's for one of the clusters. > Could > > anybody please give me some suggestions? > > The heatmap.2 function "invisibly" returns a list/structure with > lots of stuff in it. > > Look in the "Value" section in the ?heatmap.2 help documentation -- I > guess you're most interested in the rowInd and rowDendrogram > stuff. Look through the documentation for ?dendrogram (and the stuff > in the "See Also" sections), too. > > -steve > > -- > Steve Lianoglou > Graduate Student: Computational Systems Biology > | Memorial Sloan-Kettering Cancer Center > | Weill Medical College of Cornell University > Contact Info: http://cbio.mskcc.org/~lianos/contact > [[alternative HTML version deleted]]