igprotseq / calibration /ROBUSTNESS_SPEC.json
mikessh's picture
IgProtSeq data for VDJ-AQP: calibration, donor, simulations, external gut cohorts, manuscript results
b6710c1 verified
Raw History Blame Contribute Delete
5.33 kB
{
"status": "declared_before_generation_or_outcomes",
"created_utc": "2026-11-17T00:00:00+00:00",
"authorization": "author request 2026-11-17: run simulator misspecification and polyclonal panels (review item M6)",
"purpose": "robustness stress panels for the frozen v6 certified-removal rule; not a new calibration, no threshold or curve refitting, no outcome-driven redesign",
"frozen_inputs": "VALIDATION_V6_EXECUTION_FREEZE.json recipes, software-v6 manifest and FROZEN_RULE.json (sha256 f47f5d5e...) verified before generation",
"reference_design": "VALIDATION_V6_SPEC.json per_panel settings unless a scenario states a deviation",
"scenarios": {
"shifted": {
"description": "simulator shifted away from the training distribution and scored under three error models",
"deviations": {
"mutation_rate": 0.03,
"ms2_per_bin": 10
},
"physical_antibody_pairs": 12,
"amounts": "equal",
"scoring_error_models": {
"frozen": {
"q_knots": [
0.0,
1.0
],
"error": [
0.1,
0.01
],
"e_db": 0.1
},
"optimistic_x0.2": {
"q_knots": [
0.0,
1.0
],
"error": [
0.02,
0.002
],
"e_db": 0.02
},
"pessimistic_x3": {
"q_knots": [
0.0,
1.0
],
"error": [
0.3,
0.03
],
"e_db": 0.3
}
},
"note": "mutation and acquisition deviations are applied together; the panel tests robustness, not attribution to one factor"
},
"polyclonal": {
"description": "hundreds of physical antibodies with skewed amounts",
"deviations": {
"physical_antibody_pairs": 300,
"amounts": "lognormal sigma 1.5, mean-normalised multiplier exp(sigma*z - sigma^2/2) on the original per-record simulator intensity, one draw per physical antibody shared by its heavy and light chain, z from numpy default_rng([physical_selection_seed, 1]) over the sorted physical antibody IDs after selection"
},
"scoring_error_models": {
"frozen": {
"q_knots": [
0.0,
1.0
],
"error": [
0.1,
0.01
],
"e_db": 0.1
}
},
"stage_timeout_seconds": 3600
}
},
"panels": [
{
"panel": "shifted_1",
"scenario": "shifted",
"generation_seed": 2026117101,
"read_seed": 246871,
"physical_selection_seed": 2026117102
},
{
"panel": "shifted_2",
"scenario": "shifted",
"generation_seed": 2026117201,
"read_seed": 246872,
"physical_selection_seed": 2026117202
},
{
"panel": "shifted_3",
"scenario": "shifted",
"generation_seed": 2026117301,
"read_seed": 246873,
"physical_selection_seed": 2026117302
},
{
"panel": "polyclonal_1",
"scenario": "polyclonal",
"generation_seed": 2026117401,
"read_seed": 246874,
"physical_selection_seed": 2026117402
},
{
"panel": "polyclonal_2",
"scenario": "polyclonal",
"generation_seed": 2026117501,
"read_seed": 246875,
"physical_selection_seed": 2026117502
},
{
"panel": "polyclonal_3",
"scenario": "polyclonal",
"generation_seed": 2026117601,
"read_seed": 246876,
"physical_selection_seed": 2026117602
},
{
"panel": "shifted_1_rerun",
"scenario": "shifted",
"generation_seed": 2026117101,
"read_seed": 246871,
"physical_selection_seed": 2026117102
},
{
"panel": "shifted_2_rerun",
"scenario": "shifted",
"generation_seed": 2026117201,
"read_seed": 246872,
"physical_selection_seed": 2026117202
},
{
"panel": "shifted_3_rerun",
"scenario": "shifted",
"generation_seed": 2026117301,
"read_seed": 246873,
"physical_selection_seed": 2026117302
}
],
"endpoints": "per panel and pooled TP/FP/FN/precision/recall on the full physical heavy-junction denominator for the frozen certified-removal rule, PASA (official levels 1/2, I/L-canonical), the 20-nat information rule and the v5 baselines; observable-class recall; for polyclonal panels recall by amount quartile",
"resources": {
"cpus": 16,
"memory_gib": 48,
"wall_hours": 6,
"partition": "medium",
"max_concurrent_panels": 6,
"disk_budget_bytes": 50000000000
},
"data_reuse": "none; every panel starts from generation in a fresh namespace",
"corrections": [
{
"date": "2026-11-17",
"defect": "first shifted runs passed the variant e_db positionally into ErrorModel.n_substitutions, so the optimistic and pessimistic variants were scored with the default e_db 0.10 (identical to frozen); the frozen-model evaluations are unaffected",
"fix": "runner passes e_db by keyword; shifted panels rerun from generation with unchanged seeds in fresh namespaces shifted_*_rerun; first runs retained as a reproducibility check",
"discovered_by": "identical variant alignment hashes, before any variant result was interpreted"
}
]
}