gbs.diversity: GBS diversity.

Description Usage Arguments Value Author(s) Examples

Description

Calculates different measures of diveristy in a gbs object.

Usage

1
2
gbs.diversity(hap, popGroups = NULL, maf.thresh = 0.05, graph = F,
  het = "H", missing = "N")

Arguments

hap

The gbs object to manipulate.

popGroups

A data frame with two columns, where first column contain the names of individuals and second column contain the corresponding group (numeric) of population to which each individual belongs to.

graph

A logical option to graph the percent polymorphism.

het

The symbol(s) used for heterozygous calls.

missing

The symbol(s) used for missing calls.

Value

A list containing the Nei's genetic diversity and FST of the individuals

Author(s)

Narinder Singh, nss470@ksu.edu

Trevor Rife, trife@ksu.edu

Examples

1
2
data(wheat)
gbs.diversity(hap,graph=T)

trife/gbs documentation built on May 31, 2019, 7:53 p.m.