View source: R/sim_tral_with_nsm.R
sim_tral_with_std_nsm | R Documentation |
Adapter function to simulate a twin alignment using a standard site model
sim_tral_with_std_nsm(
true_phylogeny,
root_sequence,
mutation_rate = 1,
site_model = beautier::create_jc69_site_model()
)
true_phylogeny |
the true phylogeny; the actual evolutionary history of the species, of class phylo |
root_sequence |
the DNA sequence at the root of the phylogeny. By default, this will consist out of an equal amount of each letter Use check_root_sequence to check if a root sequence is valid. |
mutation_rate |
the mutation rate per base pair per time unit. Use check_mutation_rate to check if a mutation rate is valid. |
site_model |
a nucleotide substitution model, which can be:
|
an alignment
Richèl J.C. Bilderbeek
# This adapter function must be a sim_true_alignment function
check_sim_tral_fun(
sim_tral_with_std_nsm
)
# Simulate the true DNA alignment
alignment <- sim_tral_with_std_nsm(
true_phylogeny = ape::read.tree(text = "((A:1, B:1):2, C:3);"),
root_sequence = "aaaa",
mutation_rate = 0.1
)
check_alignment(alignment)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.