expectedMutationRate: Expected mutation rate of a mutation matrix

View source: R/expectedMutationRate.R

expectedMutationRateR Documentation

Expected mutation rate of a mutation matrix

Description

Expected mutation rate of a mutation matrix

Usage

expectedMutationRate(mutmat, afreq, check = TRUE)

Arguments

mutmat

A mutation matrix.

afreq

A vector with allele frequencies of the same length as the size of mutmat.

check

Logical.

Value

Expected mutation rate.

Author(s)

Thore Egeland

Examples

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)


thoree/mut2 documentation built on May 16, 2023, 7:56 p.m.