Learn R Programming

Ease (version 0.1.2)

mutMatRates: Mutation matrix from rates

Description

Generation of a mutation matrix from the allele enumeration vector of a loci and the forward and backward mutation rates.

Usage

mutMatRates(alleles, forwardMut, backwardMut)

Value

An allelic mutation matrix (probability matrix which associates to each allele in a row the probability of mutating or not to the other alleles of the locus in question).

Arguments

alleles

allele enumeration vector of a locus

forwardMut

forward mutation rate

backwardMut

backward mutation rate

Author

Ehouarn Le Faou

Details

See MutationMatrix for more details on mutation matrices.