snpExample | R Documentation |
The three reversible transformations and exact
snpExample(mutmat, afreq = NULL, check = TRUE, adjust = TRUE)
mutmat |
A mutation matrix. |
afreq |
A vector with allele frequencies |
check |
Logical |
adjust |
Logical |
Balanced mutation matrix. The expected mutation rate of the balanced matrix is returned as 'rate'.
Thore Egeland
library(pedmut)
n = 2
p = c("1" = 0.2, "2" = 0.8)#'
m = rbind(c(0.997, 0.003), c(0.003, 0.997))
mutmat = mutationMatrix("custom", matrix = m, afreq = p, alleles = 1:2)
res = snpExample(mutmat, afreq = p, adjust = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.