PLoS supp. material by Hermann Cuntz
Returns an Nx1 vector xdend of x-values useful for constructing
the dendrogram of tree intree.
Each element's x-value is set in the middle of the labelled terminal children
(maximum index + minimum index)/2.
Optional output is a correlate (equivalent) tree to intree
with same branch lengths and topology but with standard and sorted metrics.
Branch overlap is also avoided if possible.
intree must be conform to BCT format.
If unsure just apply
>> xdend_tree (sample2_tree)'
[3, 3, 3, 1.5, 1.5, 1.5, 1, 1, 2, 4, 3.5, 3.5, 3, 4, 5]
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License