Building and manipulating trees
TODO: examples here are needed
Phylo.createbranch!
— Functioncreatebranch!(tree::AbstractTree, src, dst[, len::Number];
data)
Add a branch from src
to dst
on tree
with optional length and data. source
and destination
can be either nodes or nodenames.
Phylo.deletebranch!
— Functiondeletebranch!(tree::AbstractTree, branch)
deletebranch!(tree::AbstractTree, src, dst)
Delete the branch branch
from tree
, or branch connecting src
node to dst
node.
Phylo.createnode!
— Functioncreatenode!(tree::AbstractTree[, nodename]; data)
Create a node on a tree with optional node info.
Phylo.createnodes!
— Functioncreatenodes!(tree::AbstractTree, count::Integer)
createnodes!(tree::AbstractTree, nodenames)
createnodes!(tree::AbstractTree, nodedict)
Add a number of nodes, a vector with given names, or a Dict with node names and associated node info to a tree.
Phylo.deletenode!
— Functiondeletenode!(tree::AbstractTree, node)
Delete a node (or a name) from a tree
Phylo.droptips!
— Functiondroptips!(tree::AbstractTree{OneTree}, tips)
Function to drop tips from a phylogenetic tree tree
, which are found in the vector of tips or tip names, tips
.
Phylo.keeptips!
— Functionkeeptips!(tree::AbstractTree{OneTree}, tips)
Function to keep only the tips in a phylogenetic tree, tree
, that are found in the vector of tips or tip names, tips
.