diversityMultilocus: Calculate diversity across a set of allele tables

Description Usage Arguments Value References Examples

View source: R/diversity-allele_divtables.R

Description

Calculate diversity for a set of loci encoded in an object of class 'allele_tables' as created with createAlleleTables, and diversity for each locus is calculated separately using diversitySingleLocus.

Usage

1
2
3
## S3 method for class 'allele_divtables'
diversityMultilocus(x, ploidy = 2,
  method = c("r", "q.nielsen", "q"), ...)

Arguments

x

Allele diversity data contained in an object of class allele_divtables

ploidy

Ploidy of underlying genotypes

method

Method to use for calculating diversity statistics. See diversity and Scofield et al. (2012), Sort et al. (in press).

Value

A list of class multilocus_diversity. Elements of the list are calculated from values returned by diversitySingleLocus and include:

These items were left out for no apparent reason or are confusing:

ans <- list(q.gg = q.gg, alpha.gk = alpha.gk, q.k = q.k, alpha.k = alpha.k, q.bar.weighted.a = q.bar.weighted.a, Q.0.a = Q.0.a, q.bar.weighted = q.bar.weighted, alpha.bar.weighted = alpha.bar.weighted, gamma = gamma, beta = beta, G = G, N = N, K = K, alpha.scaled = alpha.scaled, gamma.scaled = gamma.scaled, beta.scaled = beta.scaled, q.gh = q.gh, overlap = overlap, divergence = divergence, overlap.mean = overlap.mean, divergence.mean = divergence.mean)

References

Scofield, D. G., Smouse, P. E., Karubian, J. and Sork, V. L. (2012) Use of alpha, beta and gamma diversity measures to characterize seed dispersal by animals. American Naturalist 180:719-732.

Sork, V. L., Smouse, P. E., Grivet, D. and Scofield, D. G. (In press) Impact of asymmetric male and female gamete dispersal on allelic diversity and spatial genetic structure in valley oak (Quercus lobata N\'ee). Evolutionary Ecology.

Examples

1
2
3
4
5
## Workflow to calculate basic allelic diversity statistics:
library(readGenalex)
data(Qagr_pericarp_genotypes)
gt <- createAlleleTables(Qagr_pericarp_genotypes)
div <- diversityMultilocus(gt)

douglasgscofield/dispersalDiversity documentation built on March 30, 2021, 9:50 a.m.