Newick To Distance Matrix
1
0
Entering edit mode
10.1 years ago
Haluk ▴ 190

Hi,

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.

newick tree distance matrix • 4.3k views
ADD COMMENT
0
Entering edit mode
10.0 years ago
Asaf 10k

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 COMMENT

Login before adding your answer.

Traffic: 2300 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6