calc.allele.freq: This calculates allele frequencies.

Description Usage Arguments Value Examples

View source: R/fsthet.R

Description

This calculates allele frequencies from a list of genotypes.

Usage

1
calc.allele.freq(genotypes)

Arguments

genotypes

A list of genotypes.

Value

obs.af

A list of observed allele frequencies in the genotypes list.

Examples

1
2
3
  #create a random sample of genotypes
  genotypes<-sample(c("0101","0102","0202"),50,replace=TRUE)
  af<-calc.allele.freq(genotypes)

fsthet documentation built on Nov. 17, 2017, 4:23 a.m.