calcFreqs: Calculate Allele Frequencies

Description Usage Arguments Value Author(s)

View source: R/calcFreqs.R

Description

Calculate overall and by-strata allele frequencies for input to rmetasim.

Usage

1
2
3
calcFreqs(snps)

alleleProp(mac)

Arguments

snps

data frame of SNP genotypes with first column called 'id', second column called 'stratum' and every two columns thereafter being SNP loci.

mac

a vector of numerics giving the count of the minor allele, where 0 = homozygous for reference allele, 1 = heterozygous, 2 = homozygous for minor allele

Value

list of overall ('global') and by-strata ('pop') allele frequencies

Author(s)

Eric Archer eric.archer@noaa.gov


EricArcher/ebvSim documentation built on April 9, 2020, 3:39 p.m.