scripts/rank_islet1_stacks.py
Use this file in any AI chat (paste-only or attachment-capable):
Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/rank_islet1_stacks.py · SHA-256: c05d5fe606219e88…
"why_needed": "Tests RNLS-/- under an OCR precaution; MacDonald 2025 PMID:39988068 Fig. 6 showed poor GSIS in both WT and KO and does not establish a KO-specific GSIS penalty and G6PC2-/- fasting hypoglycemia risk (Bosma 2020 PMID:32569842; Audit §7.5).",
"kill_criterion": "Any survival edit that delays 2.8 mM glucose insulin shut-off beyond 3 minutes or increases basal insulin leak is permanently excluded.",
},
{
"voi_id": "OQ_016_FOUR_HURDLE_ODDS_ASSUMPTIONS_AND_SUCCESS_ENDPOINT_IIP_0003",
"open_question_id": "OQ-016",
"title": "Which assumptions and definition of success sit behind the four-hurdle odds estimate?",
"why_needed": "Raised by Linus Schumacher (ORCID 0000-0003-0797-3406, GitHub @ljschumacher, University of Edinburgh) in IIP-0003 (https://github.com/openislet/openislet/issues/3) and reassessed on 2026-11-16 after IIP-0016..IIP-0020. The 27%, 31% and 36% single-design figures (Designs A, B and X) and the 53% three-design figure (52.59% exact locked 2^12; 52.22% at fixed universal c_3 = 0.88) are uncalibrated computational team judgements for clearing four in-body hurdles in sequence, assuming the edited cells work as designed and pass lab safety checks before any trial. Layering new untested edits together can shift earlier human-anchored hurdles too, moving from one design to three depends on how much Designs A, B and X overlap at each hurdle, and the estimate depends on which clinical outcome counts as success.",
"kill_criterion": "Fix one clinical definition of success, test the per-design and shared failure assumptions in Stage 0-2 experiments, and replace the computational judgements with measured pass rates as lab and preclinical results arrive.",
},
{
"voi_id": "OQ_017_STAGE1_MULTILINEAGE_IMMUNE_ISLET_COCULTURE_STRESS_TEST_IIP_0007",
"open_question_id": "OQ-017",
"title": "Can a Stage-1 multi-lineage immune–islet co-culture catch cross-talk missed by split effector assays without obscuring which edit failed?",
"why_needed": "Raised by K Morris (GitHub @kmorris-islet) in IIP-0007 (https://github.com/openislet/openislet/issues/7). Stage-0 Readouts 3A, 3B and 3C test T cells, NK subsets and macrophages in separate wells so each edit gets a clean causal pass/fail read, which leaves open how macrophage-derived IL-1beta/TNF-alpha, NK IFN-gamma, shed autoantigen uptake by host APCs, and post-stress glucose-stimulated insulin secretion interact in one combined human microtissue before mouse studies.",
"kill_criterion": "Keep Stage-0 Readouts 3A, 3B and 3C separate and mandatory for causal factor attribution; at Stage 1, evaluate a supplementary combined human PBMC/APC/NK/macrophage co-culture only after pre-qualifying baseline alloreactive vs T1D-specific background lysis, multi-lineage viability over 48-72 h, and dynamic perifusion recovery from microgel-embedded clusters.",
},
],
}
if not (PROJECT_ROOT / ".openislet_public_bundle").is_file():
with open(OUT_PATH, "w", encoding="utf-8") as f:
json.dump(out_doc, f, indent=2, ensure_ascii=False)
f.write("\n")
for alias_name in ("islet1_stack_ranking_v0.5.json",):
alias_path = PROJECT_ROOT / "data" / "extracted" / alias_name
with open(alias_path, "w", encoding="utf-8") as f:
json.dump(out_doc, f, indent=2, ensure_ascii=False)
f.write("\n")
mp_path = PROJECT_ROOT / "data" / "extracted" / "islet1_multiparadigm_portfolio_v0.8.0.json"
mp_doc = compute_multiparadigm_2pow4n_portfolio_iip0034()
with open(mp_path, "w", encoding="utf-8") as f:
json.dump(mp_doc, f, indent=2, ensure_ascii=False, allow_nan=False)
f.write("\n")
p5_path = PROJECT_ROOT / "data" / "extracted" / "islet1_5arm_autologous_portfolio_v0.8.0.json"
p5_doc = compute_5arm_autologous_portfolio_iip0035()
with open(p5_path, "w", encoding="utf-8") as f:
json.dump(p5_doc, f, indent=2, ensure_ascii=False, allow_nan=False)
f.write("\n")
print(
f"[ISLET-1 v0.7.0 EVALUATOR COMPLETE] Evaluated {len(all_combos)} combinations across {len(studies)} studies:"
)
for a in ranked_architectures:
ped_u = a["utility_pediatric_early_onset_t1d"]
lada_u = a["utility_adult_onset_lada"]
print(
f" Named #{a['rank_among_6_named_architectures']} (Global #{a['global_rank_among_all_combinations']}/{len(all_combos)}, feasible={a['is_feasible_candidate']}): "
f"{a['architecture_id']} (K={a['genomic_locus_edit_count_K']}, B={a['base_edit_count_B']}) | "
f"Ped Index={ped_u['series_system_joint_survival_probability']:.4f} | "
f"LADA Index={lada_u['series_system_joint_survival_probability']:.4f} | "
f"Composite={a['composite_series_system_utility']:.4f} | "
f"Mfg={ped_u['manufacturing_locus_penalty_factor']:.3f} | "
f"Limiting Gate={ped_u['limiting_bottleneck_gate']} ({ped_u['limiting_bottleneck_score']:.2f})"
)
if __name__ == "__main__":
main()