Hierarchical clustering with output of node hierarchy

The Pipeline Pilot R cluster agnes component generates a hierarchical tree for a set of objects given a distance

matrix or other input.  Is it possible to modify the R code ("ape" package) to ouput the node hierarchy and distances

(or heights) for each end node.

For example, suppose I have objects - A, B, C, D, ...  I am trying to generate 2 sets of output, something that

looks like this:

Output 1 - Tree structure as a "Dewey decimal" type of format:

A          1.1.1.1

B          1.1.1.2

C          2.1

D          3.1.1

Output 2 - Corresponding distances from the root for each end node

A          5.3     2.7     1.4     0.6

B          5.3     2.7     1.4     0.8

C          3.2     1.5

D          2.1     1.1     2.3

I would be most grateful for coding help.  Thank you.

Regards,

Jim Metz

James.Metz@AbbVie.com

(847) 936 - 0441