HowTo convert distance matrix to PhyloXML format in python
1
0
Entering edit mode
8.7 years ago
trigremm • 0

Good day,

I need to draw a phylogenetic tree based on distance matrix. Can you advice me how to convert my distance matrix to phyloxml format? For example [[0,1,2],[1,0,3],[2,3,0]].

Kind regards,
Trig

python phyloxml biopython phylogenetics • 4.2k views
ADD COMMENT
1
Entering edit mode
ADD REPLY
0
Entering edit mode
8.5 years ago
Eric T. ★ 2.8k

In Biopython, you can use the Bio.Phylo.TreeConstruction module to infer a tree from your distance matrix. Then you can write the tree in any of the supported formats, including phyloXML.

ADD COMMENT

Login before adding your answer.

Traffic: 4031 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