Re: [R] hc2Newick is different than th hclust dendrogram

From: Mario Valle <>
Date: Tue, 05 Apr 2011 04:48:23 +0200

Well, I could not call them "entirely different". See attached (tree-tv from TreeView, tree-r from R).
Yes, I had to rotate and mirror the tree in TreeView but that's all. And yes, I have to ignore the tree length values from the file. Maybe it is better to post your inquiry to the Bioconductor list (from where hc2newick apparently arrives in package 'ctc'). Some humble suggestions:
- don't call a text file .Rdata! Rdata is a specific binary format read using load() and saved using save().
- add to the description of your problem how to read the data, i.e.:

z <- scan('data.Rdata')
C <- matrix(z, 112, 112, byrow=TRUE)


Hope it helps


On 04-Apr-11 21:47, Jose Hleap Lozano wrote:
> It was... I have it in my sent box is called data.Rdata...
> I am attaching it again!
> Thanks

Ing. Mario Valle
Data Analysis and Visualization Group            |
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82

______________________________________________ mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code.

Received on Tue 05 Apr 2011 - 02:50:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 05 Apr 2011 - 05:40:28 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive