GuideTree

class pyfamsa.GuideTree

A guide tree generated from several sequences.

Guide trees are binary trees, stored as an array which contains the two children nodes for each node (or -1 for leaves). Nodes can be iterated upon.

dump(file)

Write the tree into a file in Newick format.

Parameters:

file (str, bytes, `os.PathLike or file-like object) – The path to a file, or a file-like object open in binary mode.

dumps()

Dump the tree in Newick format into a bytes object.

Returns:

bytes – The tree in Newick format, stored as an ASCII string.

names

The name of the leaves in the guide tree.

Type:

list of bytes