castgen: Estimate Sample Size for Population Genomic Studies

Estimate sample sizes needed to capture target levels of genetic diversity from a population (multivariate allele frequencies) for applications like germplasm conservation and breeding efforts. Compares bootstrap samples to a full population using linear regression, employing the R-squared value to represent the proportion of diversity captured. Iteratively increases sample size until a user-defined target R-squared is met. Offers a parallelized R implementation of a previously developed 'python' method. All ploidy levels are supported. For more details, see Sandercock et al. (2024) <doi:10.1073/pnas.2403505121>.

Getting started

Package details

AuthorAlexander M. Sandercock [aut, cre] (<https://orcid.org/0000-0001-6897-1856>)
MaintainerAlexander M. Sandercock <ams866@cornell.edu>
LicenseApache License (>= 2)
Version1.0.2
URL https://github.com/alex-sandercock/castgen
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("castgen")

Try the castgen package in your browser

Any scripts or data that you put into this service are public.

castgen documentation built on April 3, 2025, 9:21 p.m.