geno_lewm.cli.calibrate¶
calibrate
¶
Generate calibration.parquet by scoring a background variant set.
Runs a trained model (loaded from a deploy model_dir via
:func:geno_lewm.deploy.load_scorer_modules, which does not require an
existing calibration artifact) over a background VCF, records raw surprise per
functional bucket, and writes the empirical-CDF calibration table consumed by
the runtime/demo manifest. Run as::
geno-lewm-calibrate --model-dir ARTIFACTS/model --vcf ARTIFACTS/background/common.vcf --fasta ARTIFACTS/reference/GRCh38.fa --output ARTIFACTS/model/calibration.parquet
build_calibration
¶
build_calibration(*, model_dir: Path, vcf: Path, fasta: Path, output: Path, summary_json: Path | None = None, window_bp: int = DEFAULT_WINDOW_BP, seed: int = 0) -> dict[str, Any]
Score the background VCF with the model in model_dir and write the table.