castgen
1.0.2Estimate Sample Size for Population Genomic Studies
Overview
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.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 100%
Downloads
Repository
Stars over time
Releases over time
Repository practices
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/alex-sandercock/castgen on 2026-08-03.
Dependencies
Nothing depends on this yet.
Code & Tests
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.0.2Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-04-02
- Total releases
- 1 / 1 yrs
- License
- Apache License (>= 2)
- Download size
- 8.1 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Start here. This is the citation for the package itself.
citation("castgen")CRAN DOI
https://doi.org/10.32614/CRAN.package.castgenBibTeX, derived from DESCRIPTION
@Manual{castgen,
title = {castgen: Estimate Sample Size for Population Genomic Studies},
author = {Sandercock, Alexander M.},
year = {2025},
note = {R package version 1.0.2},
doi = {10.32614/CRAN.package.castgen},
url = {https://CRAN.R-project.org/package=castgen}
}Derived from the package DESCRIPTION, not from a citation file the authors wrote. If they publish one later, prefer it.
This is the citation for the package. It is not a citation for the R Observatory.
Cite this page
Use this when the claim is about a measurement on this page.
BibTeX
@misc{robservatorycastgen,
author = {Balamuta, James Joseph},
title = {{R} {Observatory}: Metrics for {castgen} version 1.0.2},
year = {2026},
publisher = {HJJB, LLC},
url = {https://r-observatory.thecoatlessprofessor.com/packages/castgen},
note = {Data set. Data release v2026-08-05}
}APA
Balamuta, J. J. (2026). R Observatory: Metrics for castgen version 1.0.2 [Data set]. HJJB, LLC. Data release v2026-08-05. https://r-observatory.thecoatlessprofessor.com/packages/castgenRIS
TY - DATA
AU - Balamuta, James Joseph
TI - R Observatory: Metrics for castgen version 1.0.2
PY - 2026
PB - HJJB, LLC
N1 - Data release v2026-08-05
UR - https://r-observatory.thecoatlessprofessor.com/packages/castgen
ER - In prose
These package metrics were obtained from the R Observatory (Balamuta, 2026), data release v2026-08-05, https://r-observatory.thecoatlessprofessor.com/packages/castgen.Bound to data release v2026-08-05, which is what makes the numbers on this page reproducible. See how to cite.