Learn R Programming

poppr (version 2.9.6)

test_replen: Test repeat length consistency.

Description

This function will test for consistency in the sense that all alleles are able to be represented as discrete units after division and rounding.

Usage

test_replen(gid, replen)

Value

a logical vector indicating whether or not the repeat motif length is consistent.

Arguments

gid

a genind or genclone object

replen

a numeric vector of repeat motif lengths.

Author

Zhian N. Kamvar

Details

This function is modified from the version used in tools:::Rd_expr_doi("10.5281/zenodo.13007").

References

Zhian N. Kamvar, Meg M. Larsen, Alan M. Kanaskie, Everett M. Hansen, & Niklaus J. Grünwald. Sudden_Oak_Death_in_Oregon_Forests: Spatial and temporal population dynamics of the sudden oak death epidemic in Oregon Forests. ZENODO, tools:::Rd_expr_doi("10.5281/zenodo.13007"), 2014.

Kamvar, Z. N., Larsen, M. M., Kanaskie, A. M., Hansen, E. M., & Grünwald, N. J. (2015). Spatial and temporal analysis of populations of the sudden oak death pathogen in Oregon forests. Phytopathology 105:982-989. doi: tools:::Rd_expr_doi("10.1094/PHYTO-12-14-0350-FI")

Ruzica Bruvo, Nicolaas K. Michiels, Thomas G. D'Souza, and Hinrich Schulenburg. A simple method for the calculation of microsatellite genotype distances irrespective of ploidy level. Molecular Ecology, 13(7):2101-2106, 2004.

See Also

fix_replen bruvo.dist bruvo.msn bruvo.boot

Examples

Run this code
data(Pram)
(Pram_replen <- setNames(c(3, 2, 4, 4, 4), locNames(Pram)))
test_replen(Pram, Pram_replen)

Run the code above in your browser using DataLab