snpExample: SNP example

View source: R/snpExample.R

snpExampleR Documentation

SNP example

Description

The three reversible transformations and exact

Usage

snpExample(mutmat, afreq = NULL, check = TRUE, adjust = TRUE)

Arguments

mutmat

A mutation matrix.

afreq

A vector with allele frequencies

check

Logical

adjust

Logical

Value

Balanced mutation matrix. The expected mutation rate of the balanced matrix is returned as 'rate'.

Author(s)

Thore Egeland

Examples

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)


thoree/mut2 documentation built on June 11, 2025, 4:02 p.m.