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…
"note": "Nominal allocation illustration assuming stated beta fractions are achieved before beta-only controls, assay allocation, and process losses; recalculate actual cell budget from measured composition and recovery. Not a power analysis.",
},
"scope_and_non_conflation_note": (
"Supplements the 60:30:10 reference and fixed-beta / fixed-total beta-only boundary controls (ISLET-1-BLUEPRINT.md:244-246) "
"with a bounded, staged intermediate-mixture comparison motivated by Perez-Frances et al. 2024 PMID:39169271 "
"(human primary beta-cell pseudoislets in vitro GSIS/OCR in Figure 7 and adult-mouse in vivo regulation) and counter-balanced by "
"Meng et al. 2025 PMID:40782792 (reconstructed endocrine-subtype-complete human PSC-islets). "
"Changes neither the 60:30:10 reference recipe nor any existing dynamic-function gate (scripts/wetlab_contract.py:1855-1867) or release threshold."
),
"staged_protocol_clauses": [
"1. Screen at fixed total input first: use blocked, randomised sibling preparations of R=60:30:10 and M1=70:20:10, M2=70:25:5, M3=80:15:5, M4=80:10:10 (M1/M2 lower-perturbation priorities if capacity-limited) with existing beta-only boundary controls; keep assigned recipe primary while directly measuring input-stream purity (up to 80% live beta enrichment in Veres et al. 2019 PMID:31068696 is an enrichment step, not measured purity or a universal ceiling), achieved composition, post-handling recovery, aggregate size/volume, and process losses.",
"2. Measure whole-preparation function and burden: under the same declared glucose/oxygen waveform, retain raw traces, incremental insulin/C-peptide output U, absolute low-glucose glucagon output G, basal secretion, stimulation/first-phase measures, both t50 and t90 shut-off, and identity/processing readouts (per preparation and per starting/surviving beta and alpha populations), alongside total tissue volume V, state-qualified oxygen consumption Q, and starting-cell/process burden H.",
"3. Select once; confirm independently: advance at most one candidate from the blocked screen on the measured functional/burden trade-off and confirm on new independent differentiation blocks at fixed viable-beta input and at a directly measured equal-output dose (verified on new preparations, not inferred from beta fraction, SI, or the selected screen), without multiplying mixture dose savings by unqualified folded-area credit.",
"4. Predeclare the decision before confirmation: state the binding problem, material benefit, and functional precision required to change the recipe; retain existing dynamic gates and 60:30:10 if a justified functional margin is unavailable rather than treating an imprecise non-significant difference as equivalence.",
"5. Keep model predictions subordinate to their calibration: Layer 4 recipe fractions (scripts/run_layer4_tissue_and_metabolic_twin.py:4220-4222,4643-4645) are recorded metadata that do not scale the ODE right-hand side as lineage masses, so modelled exercise nadirs and per-alpha glucagon multipliers (~1.3x to 4x across M1-M4 and paracrine-scaling variants at equal beta mass) remain sensitivity analyses rather than mandatory recipe-advancement gates."
],
},
"unconditional_patient_level_tumor_harm_and_two_stage_psc_purge_model_sonnet55_r5": whole_product_safety_model["unconditional_patient_level_tumor_harm_and_two_stage_psc_purge_model_sonnet55_r5"],
"non_hla_neoepitope_and_complement_flow_crossmatch_audit_sonnet55_r5": {
"finding_ids": ["AUDIT-REF", "AUDIT-REF", "AUDIT-REF", "MW-R5-S2-F05", "AUDIT-REF"],
"provenance": "Audit Convergence Round 5 Step 5 & Audit Round 5 Step 6 (DEC-047/048/049; Ravindranath 2022 PMID:35323192; Deuse 2021 PMID:33416832; Straathof 2005 PMID:15728125; Moran 1991 PMID:1824699)",
"chimeric_surface_junction_neoepitope_inventory_count": 306,
"exact_boundary_constrained_8_to_11mer_window_count": 326,
"exact_boundary_constrained_8_to_11mer_window_count_with_hlac_l2_alpha1": 360,
"exact_full_polypeptide_15mer_window_count_9_boundaries": 112,
"exact_full_polypeptide_15mer_window_count_10_boundaries_with_hlac_l2_alpha1": 126,
"exact_full_polypeptide_intracellular_15mer_window_count": 34,
"full_polypeptide_vs_snippet_reconciliation_iip_0015": (
"Across full-length translated polypeptides (DEC-092 / IIP-0015), unique-position 15-mer Class-II sliding windows crossing a single boundary "
"or overlapping both the 6-aa SGGGSG linker and >=1 flanking residue in full-length FKBP12[1..108]-SGGGSG[109..114]-dCasp9[115..396] total "
"20 for iCasp9, 34 intracellular (14 SERPINB9|GSG-P2A + 20 iCasp9), 112 across the 9 listed boundaries (9+9+9+9+14+14+14+14+20), and "
"126 across all 10 boundaries when including L2|HLA-C_alpha1 (+14); cropping the flanking proteins to the 13-aa/16-aa illustrative snippets "
"shown below yields 18 for the iCasp9 snippet and 32 intracellular (136 legacy snippet-bounded reference)."
),
"sliding_8_to_11mer_window_formula": "Nominal single-cut upper-bound formula: 9 chimeric junction entries * (7 + 8 + 9 + 10 = 34) junction-spanning 8..11-mer windows = 306 windows; exact boundary-length-constrained window count is 326 across the 9 entries (33 each for the three 9-mer tethered peptides [VMAPRTLVL, GAVDPLLAL, QYDDAVYKL] and the 9-aa retained CD55 stalk [PNKGSGTTS] where len(flank)=9 caps 11-mers at 9, 34 each for the four >=10-aa-flanked single-cut junctions [L1|B2M, B2M|L2, L2|HLA-E_alpha1, SERPINB9|GSG-P2A], and 58 across the two-boundary 6-aa linker in FKBP12-SGGGSG-dCasp9; or 360 when including the 34-window L2|HLA-C_alpha1 junction GGGGSGGGGSGGGGSGGGGS-GSHSMRYFSTSVSRPGRGEP)",
"surface_ectodomain_junctions_audited": [
"VMAPRTLVL-GGGGSGGGGSGGGGSGGGGS (HLA-E SCT 20-aa L1 linker in 4,143-bp Embodiment A*; or VMAPRTLVL-GGGGSGGGGSGGGGS 15-aa L1 in 3,974-bp canonical donor)",
"GGGGSGGGGSGGGGSGGGGS-IQRTPKIQVY (L1 C-terminus to mature B2M Ile1-Tyr10)",
"VNHVTLSQPKIVKWDRDM-GGGGSGGGGSGGGGSGGGGS (mature B2M C-terminus to 20-aa L2 linker)",
"GGGGSGGGGSGGGGSGGGGS-GSHSLKYFHTSVSRPGRGEP (L2 C-terminus to mature HLA-E alpha1 Gly1-Pro20)",
"ELKYRVVSWFS-PNKGSGTTS (CD47-IgV Phe137-Ser138 to 9-aa retained CD55/DAF stalk Pro139-Ser147 omega-site [native CD55 Pro345-Ser353]; 28-aa hydrophobic propeptide GTTRLLSGHTCFTLTGLLGTLVTMGLLT 148..175 is cleaved at Ser147 upon GPI transamidation)",
"GAVDPLLAL-GGGGSGGGGSGGGGSGGGGS (Track 2 B'-SCT C1 HLA-C*03:04[Y84A] 20-aa L1 linker; plus L2-to-HLA-C alpha1 junction GGGGSGGGGSGGGGSGGGGS-GSHSMRYFSTSVSRPGRGEP)",
"QYDDAVYKL-GGGGSGGGGSGGGGSGGGGS (Track 2 B'-SCT C2 HLA-C*04:01[Y84A] 20-aa L1 linker; plus L2-to-HLA-C alpha1 junction GGGGSGGGGSGGGGSGGGGS-GSHSMRYFSTSVSWPGRGEP)",
],
"intracellular_chimeric_junctions_audited_for_indirect_apc_class_ii_presentation": [
"NSILFCGRFSSP-GSGATNFSLLKQAGDVEENPG (Locus 3 canonical R01 SERPINB9 C-terminus [Asn365-Pro376] to 21-aa retained GSG-P2A stub after Gly20|Pro21 ribosomal skipping [14 junction-spanning 15-mer windows]; eliminated in scar-free L3-BF-B and 3,799-bp comparator)",
"ATLVFDVELLKLE-SGGGSG-GFGDVGALESLRGNAD (Locus 4 AAVS1 iCasp9 FKBP12[F36V] C-terminus [Ala96-Glu108] + 6-aa SGGGSG linker [109..114] + dCARD-CASP9 [Gly135-Asp150] [20 junction-spanning 15-mer windows on full-length FKBP12[1..108]-SGGGSG-dCasp9[115..396] (34 intracellular 15-mer windows total across both intracellular junctions, 112 across the 9 boundaries, and 126 across all 10 boundaries including L2|HLA-C_alpha1; vs 18 snippet-bounded / 32 intracellular / 136 legacy snippet-bounded reference; DEC-092 / IIP-0015)])",
],
"mandatory_stage0_gate_0d_0g_flow_crossmatch_and_cdc_protocol": {
"recipient_serum_panel": "n >= 50 human sera (25 high-cPRA >= 80% sensitized allogeneic sera + 25 T1D sera, including anti-HLA-E*01:03 Luminex SAB screening)",
"assays": [
"Flow cytometric IgG and IgM crossmatch on Stage-7 Embodiment A* and B'-SCT clusters (pass: MFI shift <= 1.5x isotype)",
"20% normal human serum (NHS) C3b/C4d/C5b-9 MAC deposition and CDC lysis across active SA-THBD + SA-FHL-1 microgels (ARM3_CONTINUOUSLY_ACTIVE), never-conditioned siblings (ARM1_NEVER_CONDITIONED), and verified functionally depleted post-adjunct siblings (ARM2_CONDITIONED_DEPLETED, declaring adjunct_sa_fhl1_status so retained active SA-FHL-1 is never labeled complete adjunct depletion; IIP-0012 / DEC-091) (pass: C5b-9 MAC+ <= 5.0%, CDC lysis <= 5.0%)",
"Opsonized macrophage ADCP with recipient serum + primary human macrophages (pass: phagocytosis index <= 5.0%)",
"Optional ectopic CD55(SCR1-4) attribution satellite (IIP-0012 / DEC-091): exact same edited graft background + ectopic CD55(SCR1-4) (with declared GPI/TM anchor and PIGK non-competition vs CD47-IgV-GPI and endogenous CD59) vs exact same edited graft background without ectopic CD55 as primary causal contrast (unedited WT [PMID:27787618] and CD59 LoF [PMID:35666870] supplementary only)",
],
},
},
"ranker_graveyard006_and_unswitched_stealth_audit_sonnet55_r5": {
"finding_id": "AUDIT-REF",
"stacks_with_multiplex_base_edit_B_ge_2_and_cuts_K_ge_4": sum(
1 for c in all_combos if c.get("multiplex_base_edit_plus_dsb_translocation_risk_flag")
),
"stacks_with_unswitched_immune_evasive_clinical_hold": sum(
1 for c in all_combos if c.get("unswitched_immune_evasive_clinical_hold")
),
},
"pareto_frontier_by_locus_budget_K": [pareto_by_k[k] for k in sorted(pareto_by_k.keys())],
"all_evaluated_combinatorial_stacks": all_combos,
"top_15_combinatorial_search_results": all_combos[:15],
"bottom_5_combinatorial_traps": all_combos[-5:],
"ranked_candidate_architectures": ranked_architectures,
"target_gene_evidence_and_constraint_profiles": target_profiles,
"hip_core_fractional_factorial_protocol": hip_core_protocol,
"odds_composition_and_profile_scope_audit_iip_0003": _build_odds_composition_and_profile_scope_audit_iip_0003(),
"step7_high_value_of_information_gaps": [
{
"voi_id": "DECISION_EXP_1_HOUR0_B2M_PROMOTER_SURFACE_DENSITY",
"title": "Resting Hour-0 QuantiBRITE Surface Density & Head-to-Head Construct Comparison (Bicistronic HLA-E-GSG-tPT2A-CD47-IgV-GPI vs 2A-Free Bidirectional Cassette vs CD47-dCT vs CD47-WT; HLA-E*01:03[VMAPRTLVL] WT vs KW-Motif) Across Stage 7 Beta, Alpha, Delta & iEC Lineages",
"why_needed": "Mature resting human Stage 7 beta-cells have low basal B2M transcription before IFN-gamma exposure, and Xu et al. 2024 (PMID:38508139; Tier_2B non-islet models per IIP-0008 / DEC-086) tested GPI-anchored CD47-IgV-GPI in human Jurkat T-cells, murine A20 lymphoma, murine LSK HSPCs, and human EA.hy926 endothelial tube-formation / 10-day NCG Matrigel-plug angiogenesis assays (not beta-cells, HUVECs, or teratomas) whereas Ghimire et al. 2023 (PMID:37820008) showed full-length CD47-WT inhibits beta-cell GSIS via Cdc42 and Lin et al. 2023 (PMID:37264229) showed VMAPRTLVL occurs in ~12% of clinical HCMV UL40 isolates. Because Golgi Furin cannot cleave the cytosolic C-terminal -GSG-P2A tail on HLA-E*01:03 in the bicistronic tPT2A cassette (Audit R01), Stage-0 compares bicistronic HLA-E-GSG-tPT2A-CD47-IgV-GPI against a scarless 2A-free bidirectional cassette [SV40pA-CD47-IgV-GPI(antisense) <- EEF1A1-core | Syn_5xISRE_minP -> HLA-E*01:03(VMAPRTLVL)-bGHpA] as well as 5'-CD47-dCT/WT-tPT2A-HLA-E for Hour-0 QuantiBRITE density (>200k CD47 with anti-CD47 clone B6H12, cross-calibrated against Hu et al. 2023 PMID:37156915 clone CC2C6 + BD Quantibrite; >15k HLA-E), anti-2A read-through Western blot, dynamic GSIS, iEC tube formation, and protection against FACS-gated NKG2A- KIR2DL1/2/3+ and HCMV+ NKG2C+ adaptive NK subsets.",
"kill_criterion": "If CD47-IgV-GPI fails to match CD47-WT NK/macrophage protection across SIRPA V1/V2 donors, or if bicistronic tPT2A shows >5% unskipped read-through or impaired HLA-E trafficking relative to the 2A-free bidirectional cassette, lock the highest-performing construct uniformly across all 13 X2=+1 factorial runs prior to Stage 1.",
},
{
"voi_id": "DECISION_EXP_2_INDIRECT_APC_PRESENTATION_AND_BYSTANDER_KILLING",
"title": "Host HLA-DQ2/DQ8/DR4 Dendritic Cell Indirect Presentation, Post-Adjunct Functional-Depletion Three-History Rechallenge & Cytokine-Stimulated Beta-Cell Fas (CD95) Incremental Fratricide Screen Under SA-FasL / SA-THBD Microgels",
"why_needed": "Deleting donor MHC-I/II eliminates direct presentation but leaves indirect presentation of shed autoantigens intact (Audit §3.4). Moreover, published murine and NHP SA-FasL PEG-microgel studies (Headen et al. 2018 PMID:29867165, reporting 3.0 +/- 0.8 d fluorescent SA-FasL retention rather than functional bioactivity half-life; Lei et al. 2022 PMID:35559682) used transient short-course rapamycin (whereas Turan et al. 2024 PMID:38709159 evaluated direct islet surface biotinylation co-displaying SA-THBD [SA-TM] and SA-CD47 in a murine syngeneic intraportal IBMIR/engraftment model without rapamycin, and Kazmi et al. 2026 PMID:41842939 evaluated direct surface SA-THBD + SA-CD47 in murine BALB/c->C57BL/6 intraportal allografts without SA-FasL, PEG microgels, or systemic immunosuppression), neither established SA-THBD or VPM-carrier depletion kinetics, and human beta-cells upregulate Fas (CD95) apoptosis sensitivity under IL-1b (Loweth et al. 1998 PMID:9588443), creating both an acute SA-FasL beta-cell fratricide hazard and a distinct post-adjunct-depletion durability question once functional microgel bioactivity has faded (Audit F6; Audit R06; AUDIT-REF, L3B-01/02/03 & IIP-0012 [DEC-076/077/091]).",
"kill_criterion": "Acute fratricide gate (Audit R06): if SA-FasL + SA-THBD microgels increase cleaved-Caspase-8/TUNEL+ beta-cell apoptosis by Delta_TUNEL+ > +5.0 percentage points above the matched cytokine-treated SA-THBD-only vehicle control (or if blocking anti-Fas ZB4 antibody rescues >5.0 pp of apoptosis in the SA-FasL arm), drop SA-FasL from the hydrogel and retain only SA-THBD. Post-depletion rechallenge gate (IIP-0012 / DEC-091): across sibling aliquots comparing never-conditioned (Arm 1), conditioned-then-functionally-depleted (Arm 2, verified bound+supernatant SA-FasL/SA-THBD bioactivity depletion, declared SA-FHL-1 status, non-pooled natural-decay vs washout modes, matched sham/age controls, and separated retained vs fresh responder compartments), and continuously active (Arm 3, verified ongoing bioactivity) histories, hold any Arm-2 lot breaching SI <= 1.5, IFNg SI <= 2.0, Annexin-V <= 15.0%, 20% NHS C5b-9 <= 5.0%, viable beta recovery >= 85.0%, or perifusion GSIS SI >= 2.5.",
},
{
"voi_id": "DECISION_EXP_3_CXCL10_INDUCTION_KINETICS_RACE",
"title": "Head-to-Head Topology & Kinetic Race: CXCL10::SERPINB9-GSG-tPT2A-PD-L1 vs CXCL10::PD-L1-GSG-tPT2A-SERPINB9 vs First-Contact Perforin/Granzyme B Killing",
"why_needed": "Compares the inverted cistron topology (SERPINB9-GSG-tPT2A-PD-L1, which leaves PD-L1's C-terminal Cys272 palmitoylation/CMTM6 tail untagged [PMID:30952982, PMID:28813417] while appending the 21-aa P2A tail to cytosolic SERPINB9) against PD-L1-GSG-tPT2A-SERPINB9 for cytosolic PI-9 half-life, Granzyme B k_ass, surface PD-L1 recycling, and Hour-0 perforin/Granzyme B race kinetics (Audit §3.3; Audit F4).",
"kill_criterion": "Select the cistron orientation with superior cytosolic Granzyme B inhibition and surface PD-L1 stability; if Hour-0 CTL/NK killing exceeds 15% before CXCL10 induction, include the minimal basal hPGK core floor.",
},
{
"voi_id": "DECISION_EXP_4_BIALLELIC_AAVS1_ICASP9_ESCAPE_FREQUENCY_BOUND",
"title": "Whole-Product Clonogenic Escape Target (<10^-8 per Residual Proliferating Cell) Under Hypoxia/Cytokine XIAP Stress & >=63,000x Target-Enriched Duplex Sequencing Gate (>=62,958 Duplex Molecules for >=3 Mutant Molecules at 10^-4 VAF)",
"why_needed": "Under N_prolif <= 8x10^4 effective clonogenic opportunities per 8x10^8-cell dose, pooled MCB validation (>=3.0x10^8 cells; PMID:35795779) must prove p_escape <= 10^-8 under 1% O2 + IFN-g/TNF-a/IL-1b (evaluating whether XIAP BIR3 binding to cleaved Caspase-9 [PMID:11242052] causes resistance and testing the preclinical AP1903 + SMAC mimetic salvage hypothesis [Audit F8]), while longitudinal TP53/PPM1D/BCOR duplex sequencing must sample >=62,958 independent duplex molecules (~63,000x target-enriched duplex depth) to achieve >=95% Poisson power to observe >=3 mutant duplex molecules at VAF = 10^-4 (vs >=29,956 molecules [~30,000x] for >=1 mutant molecule and 87.5% power for >=3 molecules at 50,000x; Finding 077).",
"kill_criterion": "No in vivo pediatric translation until residual proliferating fraction is <=10^-4, upper 95% confidence bound on per-clonogenic-cell escape is <=10^-8, and >=63,000x target-enriched duplex sequencing (>=62,958 independent duplex molecules) confirms zero TP53/PPM1D/BCOR driver subclones >=10^-4 VAF with >=3 mutant molecules.",
},
{
"voi_id": "DECISION_EXP_5_FUNCTION_UNDER_PROTECTION_SHUTOFF_PERIFUSION",
"title": "Head-to-Head Dynamic Perifusion (16.7 mM -> 2.8 mM Low-Glucose Shut-Off Time & Seahorse OCR) Across Isogenic WT, RNLS-/-, G6PC2-/-, and SLC30A8 Allelic Series",