This function will test for consistency in the sense that all alleles are able to be represented as discrete units after division and rounding.
test_replen(gid, replen)
gid | a |
---|---|
replen | a numeric vector of repeat motif lengths. |
a logical vector indicating whether or not the repeat motif length is consistent.
This function is modified from the version used in https://doi.org/10.5281/zenodo.13007.
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, https://doi.org/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: 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.
#> PrMS6A1 Pr9C3A1 PrMS39A1 PrMS45A1 PrMS43A1 #> 3 2 4 4 4test_replen(Pram, Pram_replen)#> PrMS6A1 Pr9C3A1 PrMS39A1 PrMS45A1 PrMS43A1 #> TRUE TRUE FALSE TRUE TRUE