simulate_evolution | R Documentation |
This function simulates evolution given an evolutionary model and a phylogenetic tree resulting in the generation of a states table (alignment). It is possible to add a noise to the final result that could represent, e.g., sequencing errors.
simulate_evolution( nstates, tree, Q, pi, noise_sd = 0, discretization = NA, small_num = 1e-04 )
nstates |
Number of sites to be simulated (= number of rows of resulting states table). |
tree |
Phylogenetic tree of class phylo used for simulation of evolution (branch lengths required!). |
Q |
Numerical n x n matrix representing the substittion rate matrix of the evolutionary model to be used, with n being the number of states in the model. |
pi |
Numerical vector of size n representing the equilibrium frequency, with n being the number of states in the model. |
test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.