Question: Newick To Distance Matrix
gravatar for Haluk
5.0 years ago by
Lincoln, Nebraska
Haluk170 wrote:


I have set of newick files and I want to convert them into distance matrix. I'm implementing my application in Java, so if there is any library in Java, it would be great.

distance tree newick matrix • 2.5k views
ADD COMMENTlink modified 3.2 years ago by Biostar ♦♦ 20 • written 5.0 years ago by Haluk170
gravatar for Asaf
5.0 years ago by
Asaf5.3k wrote:

I don't know about JAVA but in python you can read the tree with the dendropy module and then for each pair of leaf nodes find the most recent common ancestor and compute the distance from it to each of the nodes which will give you their distance.

ADD COMMENTlink written 5.0 years ago by Asaf5.3k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1148 users visited in the last hour