View source: R/get_sim_tral_with_std_nsm_fun.R
get_sim_tral_with_std_nsm_fun | R Documentation |
Get a function to simulate the true alignment with, that uses a standard site model.
get_sim_tral_with_std_nsm_fun(
mutation_rate = 1,
site_model = beautier::create_jc69_site_model()
)
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:
|
a function
f <- get_sim_tral_with_std_nsm_fun(
mutation_rate = 0.1
)
check_sim_tral_fun(f)
alignment_params <- create_test_alignment_params(
sim_tral_fun = f,
root_sequence = "acgt",
)
true_alignment <- sim_true_alignment(
true_phylogeny = ape::read.tree(text = "((A:1, B:1):1, C:2);"),
alignment_params = alignment_params
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.