Finds the allele frequencies of a mixture from a tabfreq object

Share:

Description

The findfreq function finds the allele frequencies of a mixture stored in a simumix object, form a given tabfreq object. If the tabfreq object contains multiple populations, a reference population from which to extract the frequencies must be specified.

Usage

1
findfreq(mix, freq, refpop = NULL)

Arguments

mix

a simumix object

freq

a tabfreq object from which to extract the allele frequencies of the mixture

refpop

a factor giving the reference population in tabfreq from which to extract the allele frequencies

Value

A list giving the allele frequencies for each locus.

Author(s)

Hinda Haned <contact@hindahaned.info>

See Also

simumix

Examples

1
2
3
data(strusa)
s2<-simumix(simugeno(strusa,n=c(0,2000,0)),ncontri=c(0,2,0))
findfreq(s2,strusa,refpop="Cauc")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.