View source: R/create_standard_mutation_rate.R
create_standard_mutation_rate | R Documentation |
Create the parameters for the mutation rate
create_standard_mutation_rate(phylogeny)
phylogeny |
a phylogeny of class phylo |
the mutation rate
Giovanni Laudanno, Richèl J.C. Bilderbeek
# Phylogeny with a crown age of 3.0
phylogeny <- ape::read.tree(text = "((A:2, B:2):1, C:3);")
# Expected mutation rate is one divided by the crown age
create_standard_mutation_rate(phylogeny) # 0.333
# Phylogeny with a crown age of 4.0
phylogeny <- ape::read.tree(text = "((A:2, B:2):2, C:4);")
# Expected mutation rate is one divided by the crown age
create_standard_mutation_rate(phylogeny) # 0.25
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.