biopython v1.71.0 Bio.Phylo.TreeConstruction.DistanceMatrix
Distance matrix class that can be used for distance based tree algorithms.
All diagonal elements will be zero no matter what the users provide.
Link to this section Summary
Link to this section Functions
Initialize the class.
Set all diagonal elements to zero
Write data in Phylip format to a given file-like object or handle.
The output stream is the input distance matrix format used with Phylip programs (e.g. ‘neighbor’). See: http://evolution.genetics.washington.edu/phylip/doc/neighbor.html
handle : file or file-like object A writeable file handle or other object supporting the 'write' method, such as StringIO or sys.stdout. On Python 3, should be open in text mode.