This is a test version of Biostars. For the public version, visit https://www.biostars.org.
HowTo convert distance matrix to PhyloXML format in python

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

1 answer

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.

Log in to answer this question.