ivy.chars.cy_tree package¶
Submodules¶
ivy.chars.cy_tree.cy_tree module¶
-
class
ivy.chars.cy_tree.cy_tree.
Node
¶ Bases:
object
Node in a rooted, potentially multifurcating tree.
-
add_child
()¶
-
bft
()¶ breadth-first traversal of descendants
-
children
¶
-
isleaf
¶
-
isroot
¶
-
iterchildren
()¶
-
iternodes
()¶ iterate (preorder) over nodes descendant from self - including self
-
label
¶
-
leaves
¶
-
left
¶
-
leftchild
¶
-
leftsib
¶
-
length
¶
-
nchildren
¶
-
ni
¶
-
parent
¶
-
postiter
()¶ iterate (postorder) over nodes descendant from self - including self
-
prune
()¶
-
right
¶
-
rightsib
¶
-
treename
¶
-
-
class
ivy.chars.cy_tree.cy_tree.
Tree
¶ Bases:
object
Convenience class for creating/storing node relationships and values as arrays.
-
index
()¶ call on __cinit__, or when topology changes but no. nodes is the same
-
label
¶
-
leftchild
¶
-
length
¶
-
nchildren
¶
-
nleaves
¶
-
nnodes
¶
-
parent
¶
-
postorder
¶
-
rightsib
¶
-
root
¶
-
rootpathlen
()¶
-
-
ivy.chars.cy_tree.cy_tree.
cladesizes1
()¶
-
ivy.chars.cy_tree.cy_tree.
cladesizes2
()¶
-
ivy.chars.cy_tree.cy_tree.
cladesizes3
()¶
-
ivy.chars.cy_tree.cy_tree.
cladesizes4
()¶
-
ivy.chars.cy_tree.cy_tree.
tree_from_ivy
()¶ Convert ivy Node to cython Tree
ivy.chars.cy_tree.newick module¶
Parse newick strings.
The function of interest is parse, which returns the root node of the parsed tree.
-
class
ivy.chars.cy_tree.newick.
Tokenizer
(infile)[source]¶ Bases:
shlex.shlex
Provides tokens for parsing newick strings.
ivy.chars.cy_tree.nexus module¶
-
class
ivy.chars.cy_tree.nexus.
Newick
(parse_results=None, ttable={})[source]¶ Bases:
object
convenience class for storing the results of a newick tree record from a nexus file, as parsed by newick.nexus_iter