Alireza Fathian

Building phylogenetic tree from distance matrix

phylogenetic
[Source Code]

Scripts for building phylogenetic trees from a given distance matrix with neighbor joining method.
In /references/phylogenetic_tree.pdf you can find information about phylogenetic trees and neighbor joining method and see some examples of computing phylogenetic trees.

Example:

Input:

Distance Matrix

[ A  B  C  D  E  F ]
[ A 00 00 00 00 00 00]
[ B 05 00 00 00 00 00]
[ C 04 07 00 00 00 00]
[ D 07 10 07 00 00 00]
[ E 06 09 06 05 00 00]
[ F 08 11 08 09 08 00]

Outputs

1. Newick Format:

[ [[['E',2], ['D',3]], [ ['C',2], [['B',4], ['A',1]]]], ['F',5] ]

2. Phylogenetic Tree:

phylogenetic