Suppose I have a numpy.nd array named “arr” which is distance matrix. I want to convert it to DistanceMatrix class such that
type(arr) will be DistanceMatrix. This is because I want to use biopython package to draw a tree where
from Bio import Phylo from Bio.Phylo.TreeConstruction import DistanceTreeConstructor constructor=DistanceTreeConstructor() tree=constructor.nj(arr)
arr should be of type DistanceMatrix and I have csv version of it.