phylo2vec.utils.newick.find_num_leaves

phylo2vec.utils.newick.find_num_leaves#

phylo2vec.utils.newick.find_num_leaves(newick: str) int[source]#

Calculate the number of leaves in a tree from its Newick

Parameters:

newick (str) – Newick representation of a tree

Returns:

Number of leaves

Return type:

int