I am really wondering if there is a way of exporting the names of the samples/variables clustered within a dendrogram object into a TEXT file. Any ideas?
Thanks, Karthi. "Liaw, Andy" <[EMAIL PROTECTED] To: "'Subramanian Karthikeyan'" <[EMAIL PROTECTED]> com> cc: Subject: RE: [R] splitting clusters 2003-09-25 03:10 PM As Robert Gentleman pointed out to you on the BioC list, cutree() gives you the cluster membership. Andy > -----Original Message----- > From: Subramanian Karthikeyan > [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 1:10 PM > To: Martin Maechler; [EMAIL PROTECTED] > Subject: Re: [R] splitting clusters > > > > Thanks Martin, > > Cutting the dendrogram as you suggested solved the problem. I have > another question along the same lines... If samples x1, x2, > y4,y5, z6 are clustered together, is there a way of > extracting this information (i.e. name of the samples > clustered together) and saving it in a file? > > Thanks again, > Karthi. > > > > > > > > > > Martin Maechler > > > <[EMAIL PROTECTED] To: > "Subramanian Karthikeyan" > <[EMAIL PROTECTED]> > th.ethz.ch> cc: > [EMAIL PROTECTED] > > Subject: Re: > [R] splitting clusters > > 2003-09-25 03:56 > > > AM > > > Please respond to > > > Martin Maechler > > > > > > > > > > > > > >>>>> "KarthiS" == Subramanian Karthikeyan > <[EMAIL PROTECTED]> > >>>>> on Wed, 24 Sep 2003 13:04:04 -0400 writes: > > KarthiS> Hi All: I am clustering 500 genes using hclust of > KarthiS> R. Visualizing cluster membership becomes > KarthiS> difficult with so many genes in each cluster...Is > KarthiS> there a way of printing the dendrogram in multiple > KarthiS> pages so that I can clearly see what is in each > KarthiS> cluster? > > - Use dd <- as.dendrogram(hc) on your hclust result `hc', > then dd[1] gives the first branch, dd[1][2] the 2nd sub-branch of > the first branch, etc., see the examples on > ?dendrogram. > > - The package "maptree" has also tools for this, > particularly prune.clust() > > KarthiS> Thanks in advance. > > you're welcome. > -- > Martin Maechler <[EMAIL PROTECTED]> > http://stat.ethz.ch/~maechler/ > Seminar fuer Statistik, > ETH-Zentrum LEO C16 Leonhardstr. 27 > ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND > phone: x-41-1-632-3408 fax: ...-1228 <>< > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo> /r-help > ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help