genome-imputation-orchestrator
Run the local Beagle 5.4 GRCh37 workflow (plan, download, prepare, impute, validate, holdout) per chromosome or region with resumable steps and masked-holdout checks. Use for any local imputation or r
Files1
View on GitHubSKILL.md.agents/skills/genome-imputation-orchestrator/SKILL.md
GitHubGenome imputation orchestrator
Trigger
A request to plan, prepare, run or validate local imputation, or to add a reference panel.
Inputs and outputs
- Inputs: converted GRCh37 VCF,
config/imputation_variant_registry.json,config/local_panel_catalog.json, Beagle (BEAGLE_JAR_PATH), Java, optional bcftools. - Outputs (gitignored):
people/<sample>/imputation/**; reviewed summaries may be archived undervault/onprivate.
Privacy classification
Imputed personal VCFs and reports are R4 / do_not_share. Reference panels are public data
and stay outside Git (external path plus hash in vault/manifests/external-sources.json).
Preconditions
- Run
planfirst and read its disk estimate; keep panels onR:or another external drive, not on a nearly fullC:. - Use only panels whose license permits local use; record release, URL and hash.
Procedure
plan→download(explicit) →prepare→impute→validate.- Run
holdoutto mask typed sites and measure concordance; report it as an internal check. - Keep every source separate (array, local panel runs, servers); never merge calls.
Stop conditions
Stop before downloading large panels without explicit approval, when free disk is insufficient,
when allele checks fail (unless --allow-unchecked-alleles was explicitly chosen), or when a
step would overwrite an existing run.
Failure handling
Steps are resumable; a failed step leaves earlier outputs intact. Record the failing command and exit code rather than silently retrying with looser thresholds.
Validation
tests/test_imputation_*.py (eight modules) run offline with synthetic panels.
Example (synthetic, offline)
.\.venv\Scripts\python.exe scripts\local_imputation_pipeline.py plan `
--sample-dir out\synthetic-sample --chromosomes 22 --offline
Cannot support
Holdout concordance on one person is not calibration; DR2 from a single sample is not a population quality estimate; imputation never substitutes for sequencing confirmation.