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…
"computed_dose_level_8psc_harm_with_1pct_mosaic_20q11_and_99pct_en_bloc_retrieval": round(p_harm_8psc_if_1pct_mosaic_20q11_with_99pct_retrieval, 12),
"computed_post_retrieval_1pct_residual_8psc_harm_with_1pct_mosaic_20q11_including_1e8_metastasis_floor": round(p_harm_8psc_if_1pct_mosaic_20q11_with_99pct_retrieval, 12),
"computed_dose_level_8psc_harm_simple_1pct_residual_of_8p0892e_6": round(p_harm_8psc_simple_1pct_residual_of_8p0892e_6, 12),
"computed_post_retrieval_1pct_residual_8psc_harm_with_1pct_mosaic_20q11_with_retrieval_attenuated_metastasis": round(p_harm_8psc_simple_1pct_residual_of_8p0892e_6, 12),
"computed_whole_product_9p335psc_harm_with_1pct_mosaic_20q11_true_pre_retrieval": round(p_harm_9p335psc_if_1pct_mosaic_20q11_true_pre_retrieval, 10),
"computed_whole_product_9p335psc_harm_with_1pct_mosaic_20q11_and_99pct_en_bloc_retrieval": round(p_harm_9p335psc_if_1pct_mosaic_20q11_with_99pct_retrieval, 12),
"computed_intermediate_93p35psc_10000x_mosaic_harm_pre_retrieval": round(p_harm_93p35psc_10000x_mosaic_pre_retrieval, 10),
"computed_intermediate_93p35psc_10000x_mosaic_harm_with_99pct_retrieval": round(p_harm_93p35psc_10000x_mosaic_with_99pct_retrieval, 10),
"computed_intermediate_93p35psc_10x_mosaic_harm_pre_retrieval": round(p_harm_93p35psc_10x_mosaic_pre_retrieval, 10),
"computed_intermediate_93p35psc_10x_mosaic_harm_with_99pct_retrieval": round(p_harm_93p35psc_10x_mosaic_with_99pct_retrieval, 12),
"pre_vs_post_retrieval_metastasis_term_reconciliation_muse_r6": (
"True pre-retrieval dose-level harm without any retrieval discount on extragraft dissemination (under E[N_PSC,endo] = 8.0 and 1% 20q11.21 mosaic at 10,000x AP1903 resistance, q_esc = 0.01 * 1e-4 + 0.99 * 1e-8 = 1.0099e-6) is "
"1 - (1 - 8.0792e-6) * (1 - 1e-6) = 9.0792e-6; when the 99% en-bloc retrieval factor (1 - f_ret = 0.01) is applied to the "
"1e-6 extragraft dissemination term (1e-8 residual dissemination), pre-explant intragraft escape + residual dissemination is "
"1 - (1 - 8.0792e-6) * (1 - 1e-8) = 8.0892e-6, post-99%-explant intragraft escape alone is 8.0792e-6 * 0.01 = 8.0792e-8, "
"and combined post-99%-explant escape plus residual dissemination is 1 - (1 - 8.0792e-8) * (1 - 1e-8) = 9.0792e-8 "
"(whereas 0.01 * 8.0892e-6 = 8.0892e-8 would double-discount the 1e-8 dissemination term by (1 - f_ret)^2; at whole-product E[N_PSC,whole] = 9.335, P_pre = 1.0427e-5 and P_post = 1.0427e-7, and at the illustrative pre-Tier-A intermediate whole-product bound f_PSC = 1e-7 across 9.335e8 total cells [E[N_PSC,whole] = 93.35, whereas the 1e7-cell sub-lot screen sample itself has expectation 1.0 PSC], P_pre = 9.5270e-5 / P_post = 9.5270e-7 under 10,000x mosaic resistance [q_esc = 1.0099e-6] or P_pre = 2.0175e-6 / P_post = 2.0175e-8 under 10x mosaic resistance [q_esc = 0.01 * 1e-7 + 0.99 * 1e-8 = 1.09e-8]; MW-R6-S2-01, R9-S1-L1B-01 & AUDIT-REF [DEC-053/DEC-074/DEC-075])."
),
"reference_bound_inputs": {
"P_escape_given_AP1903_per_clonogenic_unit": p_esc_ref,
"P_escape_given_AP1903_across_8_residual_pscs": round(p_esc_8psc_dose, 12),
"p_20q11_bclxl_resistant_clone_post_ddpcr_gate": p_20q_ref,
"p_20q11_subclonal_mosaic_single_cell_fish_ddpcr_lod_ceiling": p_20q_mosaic_lod_bound,
"p_untriggered_extragraft_metastasis": p_meta_ref,
"f_en_bloc_retrieval_completeness": f_ret_ref,
},
"two_stage_orthogonal_psc_purge_requirement": {
"raw_flow_cytometry_lod_floor": 1e-4,
"naive_residual_psc_count_at_1e4_lod_in_8e8_dose": 80000,
"stage1_anti_ssea5_tra160_immunomagnetic_depletion_log10": 3.0,
"stage2_ym155_birc5_survivin_selective_purge_log10": 3.0,
"theoretical_independent_6log_residual_psc_fraction": 1e-10,
"theoretical_independent_6log_residual_psc_per_8e8_dose": 0.08,
"independence_qualification_note": "Theoretical independent multiplicative 6-log depletion (10^-4 * 10^-6 = 10^-10, 0.08 PSCs/dose) is bounded by a conservative 4-log net effective release gate ceiling (10^-4 -> 10^-8, <= 8.0 PSCs/dose) to account for potential partial correlation between surface marker retention and survivin inhibitor sensitivity, verified empirically via the 14-day mTeSR amplification + OCT4/NANOG/TDGF1 ddPCR release gate (obs_residual_psc_effective_fraction <= 1e-8 across obs_residual_psc_effective_trials >= 299,573,228).",
"orthogonal_combined_residual_psc_fraction_ceiling": 1e-8,
"expected_residual_psc_per_8e8_dose_after_two_stage_purge": 8.0,
"lot_release_ddpcr_oct4_nanog_tdgf1_after_14d_mtesr_amplification_ceiling": 1e-8,
"wetlab_contract_endpoint": "obs_residual_psc_effective_fraction",
"wetlab_contract_denominator_endpoint": "obs_residual_psc_effective_trials",
},
"chr20q11_21_bcl2l1_amplicon_surveillance_gate": {
"recurrent_psc_hotspot": "chr20q11.21 (ID1 / BCL2L1 [BCL-xL] / HM13; Avery 2013 PMID:24286026)",
"mechanistic_coupling_to_icasp9": "BCL-xL amplification inhibits mitochondrial MOMP amplification and cooperates with hypoxic XIAP to raise the AP1903 dimerization threshold in residual proliferating cells",
"mandatory_mcb_and_stage7_ddpcr_cnv_gate": "1.85 <= obs_20q11_bcl2l1_cnv_ratio <= 2.15 (95% CI within [1.85, 2.15]) plus 0/300 G-banded + Optical Genome Mapping structural variants and <= 1% subclonal mosaicism by 1,000-interphase-nuclei 20q11.21/BCL2L1 FISH or single-cell ddPCR",
"wetlab_contract_endpoint": "obs_20q11_bcl2l1_cnv_ratio",
},
"hazard_state_proliferative_survivor_clonogenic_gate": {
"protocol": (
"Sort >= 3.0e8 Stage-7 cells for Ki67+ / SOX2+ / OCT4+ / SLC18A1+ hazard-state fractions, challenge under combined 1% O2 + IFN-g/TNF-a/IL-1b + pulsed human-PK AP1903 "
"(2 x 2h pulses of 10-50 nM free AP1903 monotherapy, requiring obs_ap1903_monotherapy_pulsed_pk_log10_kill >= 4.0 and 0/299,573,228 clonogenic survivors WITHOUT birinapant; "
"parallel 100 nM birinapant arm run strictly as an exploratory mechanistic XIAP-depletion control), and culture for 28 days in mTeSR1 + Matrigel (AUDIT-REF & AUDIT-REF [DEC-050])"
),
"mandatory_pass_criterion": "obs_hazard_state_prolif_survivor_count_k == 0 colonies across obs_hazard_state_prolif_effective_trials >= 299,573,228 effective clonogenic trials under AP1903 monotherapy (obs_ap1903_monotherapy_pulsed_pk_log10_kill >= 4.0)",
"wetlab_contract_endpoint": "obs_hazard_state_prolif_survivor_count_k",
"wetlab_contract_denominator_endpoint": "obs_hazard_state_prolif_effective_trials",
"wetlab_contract_monotherapy_kill_endpoint": "obs_ap1903_monotherapy_pulsed_pk_log10_kill",
},
"en_bloc_retrieval_and_cell_retention_gate": {
"mandatory_preclinical_retrieval_completeness": "obs_explant_en_bloc_recovery_fraction >= 0.99 (one-sided 95% Student-t lower bound >= 0.99 on MEAN recovered material fraction across vascularized Day-90 omental explants with obs_vascularized_explant_en_bloc_recovery_verified == True and < 10^-6 extra-capsular Alu/transgene qPCR shedding; distinct from a 99% per-patient procedure success probability, e.g., [0.985, 1, 1, 1, 1, 1] yields mean=0.9975 and L95_t=0.992462 >= 0.99 while 1/6 procedure recovered <0.99; frozen wetlab_contract.py unchanged)",
"statistical_estimand_units_bpr04": "ONE_SIDED_95PCT_STUDENT_T_LOWER_BOUND_ON_MEAN_RECOVERED_MATERIAL_FRACTION_NOT_PER_PATIENT_PROCEDURE_PROBABILITY",
"wetlab_contract_endpoint": "obs_explant_en_bloc_recovery_fraction",
},
"antiviral_sanctuary_and_cell_intrinsic_viral_fuse_gate_0v_muse_r6": {
"finding_ids": ["MW-R6-S1-01"],
"decision_id": "DEC-053",
"primary_citations": ["PMID:19266182", "PMID:23974921"],
"lead_product_tyk2_wt_policy": (
"All lead clinical candidates (Embodiment A* ISLET1_A4_ARM1B, Arm 1X ISLET1_A4_X_MOL_RNLS_WT, and composite challenger ISLET1_COMP_R4_X_BFB_DXB_LOWLOAD1500) "
"retain wild-type TYK2 (TYK2-WT) to preserve full IFNAR1/2-STAT1/2 Type-I interferon and IL-12/IL-23 antiviral innate immunity; "
"optional TYK2 P1104A (rs34536443) satellite variants are strictly quarantined from clinical promotion unless they clear Stage-0 Gate 0V."
),
"stage0_gate_0v_live_viral_challenge_protocol": (
"Challenge engineered SC-islet organoids at MOI 0.01 and 0.1 with diabetogenic Coxsackievirus B1/B3/B4 (CVB1/CVB3/CVB4, CXADR-tropic), human cytomegalovirus (HCMV), and Epstein-Barr virus (EBV) "
"for 28 days in the presence of NK cells and autologous/allogeneic PBMCs; require >= 3.0 log10 reduction in viral genome copies by Day 14 "
"(obs_gate0v_cvb_day14_log10_viral_reduction >= 3.0), 0% persistent VP1+ or IE1+ reservoir cells at Day 28 "
"(obs_gate0v_day28_persistent_vp1_ie1_positive_cell_pct <= 0.0%), intact cytosolic RNA-sensing MDA5 (IFIH1) / RIG-I (DDX58) / MAVS pathway activation, and bystander uninfected beta-cell GSIS SI >= 2.5."
),
"cell_intrinsic_mda5_rigi_mavs_intactness_gate": (
"Verify intact cell-intrinsic MDA5 (IFIH1) / RIG-I (DDX58) / MAVS -> IRF3/IFN-beta/IFN-lambda1 induction upon poly(I:C) or CVB1/CVB4 challenge so enteroviral abortive clearance operates autonomously upstream of MHC-I/CD8+ CTLs."
),
"cell_intrinsic_viral_fuse_challenger": {
"challenger_id": "VIRAL_FUSE_PKR_OAS_ABORTIVE_CHALLENGER",
"mechanism": (
"Cell-intrinsic viral-replication-triggered abortive suicide fuse (dsRNA-sensing PKR/OAS1-RNase L or IFIH1/MAVS-inducible caspase-9/GSDME circuit) "
"that selectively aborts virally infected cells before virion assembly and paracrine spread without requiring MHC-I/CD8+ CTL recognition."
),
},
"wetlab_contract_endpoints": [
"obs_gate0v_cvb_day14_log10_viral_reduction",
"obs_gate0v_day28_persistent_vp1_ie1_positive_cell_pct",
],
},
"coupled_shield_switch_coinheritance_and_post_stress_outgrowth_gate_muse_r6": {
"finding_ids": ["MW-R6-S1-02"],
"decision_id": "DEC-053",
"primary_citations": ["PMID:24286026", "PMID:21841799", "PMID:15728125"],
"co_inherited_locus1_surface_eraser_tag_challenger": (
"Co-inheritance challenger coupling an antibody-depletable compact surface tag (RQR8 or tEGFR) or bicistronic CD47-P2A-iCasp9 / orthogonal second suicide switch directly into the "
"Locus-1 B2M immune-shield bicistron so that promoter-level epigenetic silencing or whole-locus LOH obligately co-silences HLA-E/CD47 "
"and exposes the cell to immediate innate NK/macrophage clearance, while independent AAVS1 iCasp9 is retained alongside because downstream coding frameshift or P2A ribosome skipping (~5-15% incomplete cleavage) does not abrogate upstream HLA-E/CD47 translation."
),
"dual_orthogonal_eraser_requirement": (
"Require two mechanistically independent elimination modalities (AAVS1 iCasp9/AP1903 monotherapy + orthogonal cell-surface antibody-mediated CDC/ADCC "
"or HSV-TK/ganciclovir backup), each independently achieving >= 4-log10 depletion under combined 1% O2 hypoxia + 20q11.21/BCL2L1 trisomy."
),
"post_stress_20q11_outgrowth_assay": (
"Subject 10^8 differentiated Stage-7 cells to 72-h 1% O2 hypoxia + IFN-g/TNF-a/IL-1b + sub-lethal AP1903 cycling followed by 28-day outgrowth, "
"requiring zero positive selection or clonal enrichment of 20q11.21/BCL2L1 copy number or TP53/PPM1D/BCOR variants "
"(obs_post_stress_20q11_bcl2l1_outgrowth_fold <= 1.0 point estimate and upper95 <= 1.20x) and functional p53 Nutlin-3a response >= 5.0x (obs_nutlin3a_p21_mdm2_fold_induction >= 5.0)."
),
"wetlab_contract_endpoint": "obs_post_stress_20q11_bcl2l1_outgrowth_fold",
"functional_p53_nutlin3a_endpoint": "obs_nutlin3a_p21_mdm2_fold_induction",
"min_nutlin3a_p21_mdm2_fold_induction": 5.0,
},
"wt_iapp_pouch_accumulation_and_pramlintide_lead_promotion_rule_muse_r6": {
"finding_ids": ["MW-R6-S1-14"],
"decision_id": "DEC-053",
"primary_citations": ["PMID:18753660", "PMID:20835230"],
"pouch_iapp_mass_balance": (
"40 IU/day insulin (~240 nmol/day) co-secretes 2.4-12.0 nmol/day human WT IAPP (at 1-5% molar ratio); distributed into a 7.0 mL pouch volume "
"with restricted macromolecular washout and matrix binding, local interstitial WT IAPP generation reaches 0.34-1.71 uM/day, crossing the micromolar "
"nucleation threshold for toxic beta-sheet oligomerization and NLRP3 inflammasome IL-1beta activation (Westermark et al. 2008 PMID:18753660; Masters et al. 2010 PMID:20835230)."
),
"conditional_lead_promotion_rule": (
"Stage-0 Gate 0E-amyloid runs a 7-to-14-day confined high-glucose (16.7 mM) + exogenous preformed WT human IAPP fibril-seeding challenge in the 350-um hydrogel coupon; "
"if WT IAPP exhibits Thioflavin-T (ThT) amyloid area > 1.0% (> 2.0x baseline), A11 toxic oligomer positivity, macrophage NLRP3 IL-1beta release (> 50 pg/mL), or > 3-5% beta-cell "
"caspase-3/apoptosis, non-amyloidogenic pramlintide-like IAPP(A25P/S28P/S29P) (product candidate ISLET1_A4_IAPP_PRAM / satellite coupon ER_IAPP_PRAMLINTIDE_RNLS_WT, K=0 DSBs, B=1 base edit) is promoted "
"via sequential DSB-free base editing (or paired only with DSB-only K<=4 stacks so simultaneous base-editor burden remains B<=1 and avoids the GRAVEYARD_006 B>=2 WARN engineering-complexity discount rule; DEC-054/057/058)."
),
},
}
hip_core_protocol["layer1_ultracode_audit_reconciliation_ledger"] = layer1_audit_ledger
with open(protocols_dir / "hip_core_fractional_factorial_v0.6.2.json", "w", encoding="utf-8") as f:
json.dump(hip_core_protocol, f, indent=2, ensure_ascii=False)
f.write("\n")
out_doc = {
"schema_version": "0.7.0",
"project": "OpenIslet.org (Project Islet-1) — Sign-Sensitive, Endpoint-Oriented & Locus-Penalized Evaluator",
"champion_challenger_portfolio": champion_challenger_portfolio,
"layer1_ultracode_audit_reconciliation_ledger": layer1_audit_ledger,
"wetlab_bayesian_calibration_integration_status": wetlab_calibration_link_status,
"estimand_disclaimer": (
"All scores in this file represent a Relative Multi-Gate Evidence & Feasibility Index in [0, 1] "
"combining sign-preserved comparative effect sizes, counter-evidence penalties, human genetic "
"constraints (gnomAD pLI/LOEUF, OpenTargets), explicit engineering priors (with sensitivity ranges), "
"and multiplex chromosomal/nickase edit penalties. They are NOT calibrated human clinical 1-year "
"graft survival probabilities, and heuristic_evidence_sparsity_se / heuristic_conservative_floor_index "
"are deterministic scenario penalties rather than calibrated Bayesian posterior intervals."
),
"based_on_validated_ring1_studies": len(studies),
"total_atomic_effects_synthesized": graph.get("total_atomic_effects_extracted", 0),
"total_effect_modifiers_synthesized": graph.get("total_effect_modifier_interactions_extracted", 0),
"total_multi_hop_causal_chains_synthesized": len(graph.get("multi_hop_cross_study_causal_chains", [])),
"total_valid_combinatorial_stacks_evaluated": len(all_combos),
"total_feasible_unblocked_stacks": sum(1 for c in all_combos if c.get("is_feasible_candidate", True)),
"total_graveyard_blocked_stacks": sum(1 for c in all_combos if not c.get("is_feasible_candidate", True)),
"engineering_priors_and_sensitivity_table": ENGINEERING_PRIORS_AND_SENSITIVITY_TABLE,
"complete_gate_coefficient_registry": COMPLETE_GATE_COEFFICIENT_REGISTRY,
"direct_output_logit_sensitivity_and_variance_decomposition": direct_logit_sensitivity,
"whole_product_clonogenic_safety_model": whole_product_safety_model,
"bounded_intermediate_endocrine_mixture_comparison_substudy_iip_0006": {
"iip_id": "IIP-0006",
"decision_id": "DEC-084",
"affects_tests": ["Gate_1", "Gate_5"],
"affects_designs": ["Design_A", "Design_B", "Design_X"],
"primary_citations": ["PMID:39169271", "PMID:40782792", "PMID:31068696"],
"related_graveyard_rules": ["GY-003", "GY-004", "GY-007", "GY-005", "GY-009"],
"reference_recipe_retained": "R = 60:30:10 (beta:alpha:delta)",
"candidate_recipes_beta_alpha_delta": {
"M1": "70:20:10",
"M2": "70:25:5",
"M3": "80:15:5",
"M4": "80:10:10",
"lower_perturbation_screen_priorities": ["M1", "M2"],
},
"nominal_allocation_illustration_4_blocks_at_1p60M_viable_post_aggregation_cells_per_1000_ieq": {
"four_candidates_fixed_total_cells_millions": 25.60,
"four_candidates_plus_common_reference_fixed_total_cells_millions": 32.00,
"deferred_four_candidate_fixed_beta_arms_cells_millions": 20.57,
"four_candidates_fixed_total_plus_fixed_beta_cells_millions": 46.17,
"total_including_common_reference_and_fixed_beta_cells_millions": 52.57,
"candidate_only_allocation_reduction_pct_by_deferring_fixed_beta": 44.55,
"reference_inclusive_allocation_reduction_pct_by_deferring_fixed_beta": 39.13,