Skip to content

OpenPVA 2.1.0: managed genetics, correlated environments, base-R plots, Rosetta Stone vignette - #3

Merged
BWBrook merged 4 commits into
mainfrom
openpva-2.1.0
Nov 30, 2026
Merged

BWBrook merged 4 commits into
mainfrom
openpva-2.1.0

Conversation

@BWBrook

@BWBrook BWBrook commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Complete conservation-practitioner toolkit and CRAN-ready release (OpenPVA 2.1.0), preserving pure base + recommended R (Depends: R (>= 4.1.0), NeedsCompilation: no, VignetteBuilder: litedown, zero external runtime Imports).

Highlights

  • Managed genetics & kinship-aware mating: mate_min_kinship() (polygyny), exact shortest-augmenting-path bipartite assignment in pairing_process(priority = "kinship" | "mean_kinship", max_kinship = , by = ), individual mean_kinship(), exact Lacy (1995) founder_genome_equivalents (n^2 / (2 * sum(K))), rectangular kinship_matrix(against = ), and optional engine-owned non-perturbing neutral-locus gene drop (pva_state(n_loci = ), summarise_markers(), marker_founder_shares(), genetic_metrics()) with isolated L'Ecuyer substreams and Box–Muller cache preservation.
  • Correlated spatiotemporal environments: env_ar1(), env_trend(), and spatial_correlation() composing directly inside environment_process() via context$variable, with name-aligned inputs, rank-revealing Cholesky (rho = 1 supported, 1e-8 PSD reconstruction tolerance), and BLAS-free R accumulation for bit-identical serial / fork / PSOCK parity.
  • Zero-dependency diagnostic plotting & summaries: base-graphics plot.pva_run() (50%/90% trajectory fan ribbons, stepwise Wilson first-passage risk curve, cohort-split accounting, add = TRUE overlays, active par("usr") coordinates), pva_ensemble class with plot.pva_ensemble() and print.pva_ensemble(), extinction-aware summarise_trajectory() (n_observed & n_extant), and per-process cohort-stock checks in summarise_accounting().
  • Rosetta Stone HTML vignette & CRAN readiness: executable litedown vignette (vignettes/rosetta.Rmd) mapping verified GAPPS commands, illustrative Vortex sequence, harvest/release order sensitivity, Leslie projection ($A^t n_0$), managed genetics, and two-patch dispersal; monitored maintainer email (barry.brook@utas.edu.au); S3 Rd generation; and full cross-platform vignette + PDF manual CI.

Verification

  • Developed and audited via BWBrook/research-advisor Track B (unanimous 3-for-3 B3 backbone candidate-claude, B4 hardening/harvest by Codex gpt-6.2-astra, final read-only B5 diff audit by Claude Fable 5.2: Verdict: GO, plus four non-blocking B5 micro-polishes folded into this branch).
  • Local R CMD build . (with litedown HTML vignette) + R CMD check --as-cran --no-manual: 0 errors, 0 warnings, 1 NOTE (New submission), 2,448 PASS / 0 FAIL / 0 WARN / 0 SKIP.
  • Woodhen strict scaling gate: 16.12 s wall / 1,210 MiB tree RSS (zero regression vs v2.0.1); large-pedigree oracle (2500 / 5000 / 1998→2002): 0 / 0 / 4.34e-19.

@BWBrook
BWBrook merged commit 3bf1880 into main Nov 30, 2026
4 checks passed
@BWBrook
BWBrook deleted the openpva-2.1.0 branch November 30, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant