Skip to content
Back to formatted view

Raw Message

Message-ID: <19739.6731.194681.914724@cmath-6.math.ethz.ch>
Date: 2010-12-29T11:23:55Z
From: Martin Maechler
Subject: Any functions to manipulate (merge, cut, remove) hclust objects? (maybe through phylo?)
In-Reply-To: <AANLkTinXC3KhAMMpZ2STJt5zcQ1nFiStHRiG0rHfkkyw@mail.gmail.com>

>>>>> "TG" == Tal Galili <tal.galili at gmail.com>
>>>>>     on Mon, 27 Dec 2010 23:34:33 +0200 writes:

    TG> Hello all, I'm now working with hclust objects and was
    TG> hoping to perform some basic editing on them like:

    TG>    - Joining = the merging of two hclust objects (so
    TG> they will share one root) - Splicing = So to cut/extract
    TG> a branch out of an hclust object - that by itself will
    TG> be an hclust object.

    TG> I noticed I could extract one element of an hclust
    TG> object by turning it into a dendrogram, but that doesn't
    TG> enable me to turn it back into an hclust object.

Why should you "turn it back" ?
What do you want to use them for

The intent of the "dendrogram" has been that it is more flexible
(and more general) than "hclust" and can be printed, plotted,
manipulated, ... better than hclust ones.

Regards,
Martin Maechler, ETH Zurich
 

    TG> Are there any functions that can aid with this?  Maybe
    TG> through the ape package and the phylo objects?

    TG> Thanks, Tal