Package: castgen Title: Estimate Sample Size for Population Genomic Studies Version: 1.0.2 Authors@R: person("Alexander M.", "Sandercock", , "ams866@cornell.edu", role = c("aut", "cre"), comment = c(ORCID = "https://orcid.org/0000-0001-6897-1856")) Description: 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) . License: Apache License (>= 2) URL: https://github.com/alex-sandercock/castgen BugReports: https://github.com/alex-sandercock/castgen/issues Imports: doParallel (>= 1.0.17), dplyr (>= 1.1.2), foreach (>= 1.5.2), parallel (>= 4.0.0), Rdpack (>= 0.7), stats, utils, vcfR (>= 1.15.0) Suggests: testthat (>= 3.0.0) Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.2 Config/pak/sysreqs: libicu-dev Repository: https://alex-sandercock.r-universe.dev Date/Publication: 2025-04-02 20:01:46 UTC RemoteUrl: https://github.com/alex-sandercock/castgen RemoteRef: HEAD RemoteSha: 2a218145cea3ebebad9d8a54fdcbb688bf883e46 NeedsCompilation: no Packaged: 2026-10-15 09:16:11 UTC; root Author: Alexander M. Sandercock [aut, cre] (ORCID: ) Maintainer: Alexander M. Sandercock