sharedLoci: Shared Loci

Description Usage Arguments Value Author(s) Examples

Description

Calculate proportion of alleles and number of loci shared between pairs of individuals or strata.

Usage

1
2
3
propSharedLoci(g, type = c("strata", "ids"))

sharedAlleles(g, smry = c("num", "which"))

Arguments

g

a gtypes object.

type

a character vector determining type of pairwise comparsion. Can be "strata" for strata or "ids" for individuals.

smry

a character vector determining type of summary for sharedAlleles. "which" returns the names of the alleles shared. "num" returns the number of alleles shared.

Value

data.frame summary of pairwise shared loci.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

1
2
3
4
5
6
7
8
9
data(msats.g)
msats.g <- stratify(msats.g, "fine")

sharedAlleles(msats.g)

## Not run: 
propSharedLoci(msats.g)

## End(Not run)

strataG documentation built on Feb. 28, 2020, 9:07 a.m.