Module asymmetree.treeevolve
Simulation of species and gene trees.
The subpackage asymmetree.treeevolve contains modules for the simulation and manipulation of species trees and gene trees. In terms of divergence time, these trees define an ultrametric on the set of their (extant) leaves. Gene trees, furthermore, can be manipulated with a realistic rate heterogeneity among their branches resulting in general additive distances (but no longer ultrametric).
A typical simulation consists of the following steps:
(1) dated species tree (models e.g. 'Yule', and '(episodic) birth-death process')
(2) dated gene tree(s) (birth-death process with speciations as additional branching events)
(3) assignment of asymmetric evolution rates to paralogous genes
(4) pruned gene tree(s) (removal of all branches that lead to losses only)
Expand source code
# -*- coding: utf-8 -*-
"""Simulation of species and gene trees.
The subpackage asymmetree.treeevolve contains modules for the simulation and
manipulation of species trees and gene trees. In terms of divergence time,
these trees define an ultrametric on the set of their (extant) leaves. Gene
trees, furthermore, can be manipulated with a realistic rate heterogeneity
among their branches resulting in general additive distances (but no longer
ultrametric).
A typical simulation consists of the following steps:
(1) dated species tree (models e.g. 'Yule', and '(episodic) birth-death
process')
(2) dated gene tree(s) (birth-death process with speciations as additional
branching events)
(3) assignment of asymmetric evolution rates to paralogous genes
(4) pruned gene tree(s) (removal of all branches that lead to losses only)
"""
from asymmetree.treeevolve.SpeciesTree import (species_tree_n,
species_tree_age,
species_tree_n_age,
nonbinary)
from asymmetree.treeevolve.GeneTree import (dated_gene_tree,
GeneTreeSimulator,
prune_losses)
from asymmetree.treeevolve.RateHeterogeneity import (rate_heterogeneity,
autocorrelation_factors,
gene_trees)
from asymmetree.treeevolve.DistanceNoise import (noisy_matrix,
convex_linear_comb,
wrong_topology_matrix)
Sub-modules
asymmetree.treeevolve.DistanceNoise-
Simulation of noisy distance matrices …
asymmetree.treeevolve.GeneTree-
Simulation of dated gene trees.
asymmetree.treeevolve.RateHeterogeneity-
Evolution rate heterogeneity …
asymmetree.treeevolve.SpeciesTree-
Simulation of dated species trees.