View source: R/expectedMutationRate.R
expectedMutationRate | R Documentation |
Expected mutation rate of a mutation matrix
expectedMutationRate(mutmat, afreq, check = TRUE)
mutmat |
A mutation matrix. |
afreq |
A vector with allele frequencies of the same length as the size of mutmat. |
check |
Logical. |
Expected mutation rate.
Thore Egeland
library(pedmut)
n = 4
p= 1:n/sum(1:n)
names(p) = 1:n
mutmat = mutationMatrix("onestep", rate = 0.02, afreq = p, alleles = 1:n)
expectedMutationRate(mutmat, afreq = p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.