allele.counts: This counts the number of alleles at a locus.

Description Usage Arguments Value Examples

View source: R/fsthet.R

Description

This counts the number of times each allele occurs at a locus from a list of genotypes (the sum of all the counts is 2*number of individuals).

Usage

1
allele.counts(genotypes)

Arguments

genotypes

A list of genotypes.

Value

AlleleCounts

The number of times each allele is recorded at the locus.

Examples

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

fsthet documentation built on March 21, 2018, 1:04 a.m.