scripts/run_layer3_structural_binder_plane.py
Use this file in any AI chat (paste-only or attachment-capable):
Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/run_layer3_structural_binder_plane.py · SHA-256: a070de200dfefd3d…
"Single common formulation dose rule: a single selected SA-THBD surface-equivalent dose d* (titrated across 0, 50, 150, 300 nM across n >= 6 independent blood/iEC donors) must simultaneously clear Assays 1, 2, 2b, and 3 without dose-splitting between rheology and whole-blood patency.",
"Assay 1 (Chandler-loop IBMIR suppression at dose d*): recalcified human whole-blood loop requiring upper95(TAT) <= 15 ug/L, upper95(C3a) <= 200 ng/mL, and lower95(platelet retention) >= 85%.",
"Assay 2 (7-day iEC/pericyte fibrin-sprouting rheometry & tubulogenesis at dose d*): fibrinogen (2.5-5.0 mg/mL) + physiological thrombin (0.5-2.0 U/mL), requiring fibrin storage modulus G' within 80-120% of unmodified fibrin control and Day-7 CD31+ lumenized vascular network length lower95 >= 85% of control.",
"Assay 2b (TAFIa & APC chromogenic kinetics and tPA clot-lysis remodeling window at dose d*): direct chromogenic measurement of APC and TAFIa generation plus tPA-induced (100 ng/mL) turbidimetric clot-lysis half-time t_1/2 required to remain within 0.80x-1.50x of unmodified fibrin control with >= 80% pericellular fibrin remodeling clearance around sprouting iEC lumens at Day 7 (preventing TAFIa fibrinolytic lock).",
"Assay 3 (Perfused microvascular lumen patency under recalcified human whole blood at dose d*): microfluidic vascularized hydrogel perfusion after anastomosis requiring lower95(70-kDa FITC-dextran / autologous RBC perfused lumen fraction) >= 90% at 24 h without occlusive fibrin/platelet microthrombi and tracer-clearance-derived perfusion rate constant lower95(k_perf) >= 0.10 s^-1 (matching Layer-4 Gate 0F obs_outer_band_kperf_s_inv >= 0.10 s^-1).",
],
},
"sa_thbd_tafi_fibrin_scaffold_vs_ibmir_patency_gate_sol61_r6": {
"finding_ids": ["AUDIT-REF", "AUDIT-REF"],
"common_selected_dose_d_star_required": True,
"tpa_clot_lysis_half_time_ratio_window_vs_control": [0.80, 1.50],
"min_perfused_lumen_patency_pct": 90.0,
"min_outer_band_kperf_s_inv": 0.10,
},
"sa_fasl_microgel_nkp46_innate_nk_neutrality_and_teff_selectivity_gate_sol61_r6": {
"finding_ids": ["AUDIT-REF", "AUDIT-REF", "MW-R6-S2-R3"],
"innate_nkp46_cd107a_degranulation_neutrality_gate": (
"Sorted primary human NKp46+ NK co-culture with SA-FasL-presenting PEG microgels requiring upper95(Delta CD107a degranulation) <= +5.0 pp over blank-microgel baseline."
),
"teff_vs_treg_apoptosis_selectivity_gate": (
"Activated CD95^hi Teff apoptosis >= 60% vs CD4+CD25^hiFoxP3+ cFLIP^hi Treg viability/suppression retention >= 80% of WT."
),
"treg_primary_estimand_hierarchy": (
"Primary binding gate: relative retention >= 80% of WT when WT baseline suppression >= 50%; "
"absolute lower95(delta) >= -10.0 pp is co-primary and becomes the sole binding gate if WT baseline suppression < 50% (MW-R6-S2-R3 [DEC-053])."
),
},
"membrane_complement_regulator_cd55_scr14_cd59_and_assembled_cassette_ibmir_gate_muse_r6": {
"finding_ids": ["MW-R6-S1-04", "MW-R6-S1-07", "MW-R6-S1-13"],
"decision_id": "DEC-053",
"primary_citations": ["PMID:1824699", "PMID:30378751", "PMID:38508139"],
"why_daf_gpi_stalk_alone_lacks_convertase_decay_activity": (
"CD47-IgV-DAF fuses mature CD47 IgV(Gln19-Ser138) to the 9-aa C-terminal GPI anchor peptide of CD55/DAF (Pro345-Ser353, PNKGSGTTS) "
"and omits CD55 short consensus repeats SCR1-SCR4 (which accelerate C3/C5 convertase decay) and CD59 (which blocks C8/C9 MAC pore assembly); "
"while perimeter PEG-4MAL microgels carry SA-FHL-1 (Factor H SCR1-7) and SA-THBD, cell-intrinsic complement regulation on beta cells and iECs "
"during hypoxic shedding of endogenous GPI-anchored CD55/CD59 requires direct functional verification in assembled cassettes (MW-R6-S1-04 [DEC-053])."
),
"assembled_cassette_chandler_loop_ibmir_and_complement_gate": {
"protocol": (
"Incubate fully assembled 350-um hydrogel cassettes (containing Stage-7 SC-islets + iECs/pericytes + CaO2/catalase lamina + SA-THBD/SA-FHL-1/SA-FasL microgels) "
"in recalcified non-anticoagulated human whole blood in a Chandler loop for 120 min across n >= 6 ABO-compatible and high-cPRA sera."
),
"target_sc5b9_fold_over_baseline": 1.5,
"max_sc5b9_fold_over_baseline": 2.0,
"target_platelet_retention_pct": 80.0,
"min_platelet_retention_pct": 70.0,
"max_c3d_opsonization_mfi_fold": 1.5,
"wetlab_contract_endpoints": [
"obs_assembled_cassette_chandler_loop_sc5b9_fold",
"obs_assembled_cassette_chandler_loop_platelet_retention_pct",
],
"cell_intrinsic_cd55_scr14_cd59_challenger": (
"If assembled-cassette Chandler-loop sC5b-9 exceeds 1.5x target (2.0x hard Stage-0 hold ceiling) or C3d opsonization exceeds 1.5x on hypoxic SC-islets/iECs, "
"promote the chimeric single-chain CD47-IgV-CD55(SCR1-4)-GPI or 2A-free bidirectional/dual-promoter [SV40pA-CD55(SCR1-4)-GPI(antisense) <- EEF1A1-core | hPGK1-min(sense) -> CD59-GPI-bGHpA] complement-shield challenger "
"(explicitly rejecting 2A-linked CD55-P2A-CD59 or CD59-P2A-CD55 bicistrons because placing either GPI-anchored protein upstream of a 2A peptide appends a C-terminal -GSG-P2A stub that blocks ER PIGK GPI-transamidase cleavage, "
"and requiring Stage-0 Gate-0D flow-cytometric CD55/CD59 surface expression, PI-PLC cleavage >= 85%, and zero 2A-scar qualification; AUDIT-REF [DEC-075])."
),
"ectopic_cd55_scr14_unconfounded_causal_attribution_satellite_iip_0012": {
"decision_id": "DEC-091",
"contribution_id": "IIP-0012",
"primary_citations": ["PMID:35666870", "PMID:27787618", "PMID:38508139"],
"primary_causal_contrast": (
"Exact same edited Stage-7 graft background + ectopic CD55(SCR1-4) vs exact same edited Stage-7 graft background without ectopic CD55 "
"(matched vector/delivery mock handling and intact endogenous CD59), isolating CD55 convertase-decay attribution without confounding "
"from the 4-locus edit package or from total CD59 loss-of-function (which impairs SNARE-mediated insulin exocytosis via intracellular "
"IRIS-1/IRIS-2 isoforms per Golec et al. 2022 PMID:35666870)."
),
"supplementary_references_and_anchor_controls": (
"Unedited WT Stage-7 endocrine cells (already complement-resistant per van der Torren et al. 2017 PMID:27787618, so developmental "
"CD55 variation alone does not establish a mature Stage-7 deficit) and CD59-perturbed controls are retained strictly as supplementary "
"references; any ectopic CD55(SCR1-4) construct must specify its membrane anchor (GPI vs transmembrane), plasma-membrane localization, "
"QuantiBRITE surface expression, and ER PIGK GPI-biosynthesis non-competition against CD47-IgV-GPI (>200,000 molecules/cell) and "
"endogenous surface CD59 under both acute 20% NHS (<=5.0% lysis) and Arm-2 post-adjunct-depletion complement rechallenge."
),
},
},
"post_contact_trogocytosis_and_apoptotic_efferocytosis_sparing_gate": {
"post_macrophage_contact_cd47_retention_min_molecules": 180000,
"target_apoptotic_corpse_efferocytosis_clearance_pct_of_wt": 75.0,
"apoptotic_corpse_efferocytosis_clearance_min_pct_of_wt": 70.0,
"efferocytosis_receptor_panel": "MerTK/AXL/TIM-4",
"mechanistic_rationale": (
"High-density GPI-anchored CD47 (> 200,000 molecules/cell) must resist macrophage trogocytic stripping during live-cell contact "
"(maintaining post-contact p10 >= 180,000 molecules/cell) while undergoing calreticulin/phosphatidylserine dominance or caspase-dependent "
"shedding on Annexin-V+ apoptotic corpses so MerTK/AXL/TIM-4 macrophage efferocytosis (PMID:30846565) retains >= 75% target (>= 70% hard Stage-0 hold floor) of WT clearance rate and prevents "
"secondary necrotic DAMP/HMGB1 release (obs_apoptotic_effero_clearance_retention_pct_of_wt >= 70.0%; MW-R6-S1-13 & AUDIT-REF [DEC-053/060])."
),
"wetlab_contract_endpoint": "obs_apoptotic_effero_clearance_retention_pct_of_wt",
},
"apoptotic_beta_cell_efferocytosis_clearance_gate_muse_r6": {
"post_macrophage_contact_cd47_retention_min_molecules": 180000,
"target_apoptotic_corpse_efferocytosis_clearance_pct_of_wt": 75.0,
"apoptotic_corpse_efferocytosis_clearance_min_pct_of_wt": 70.0,
"efferocytosis_receptor_panel": "MerTK/AXL/TIM-4",
"mechanistic_rationale": (
"High-density GPI-anchored CD47 (> 200,000 molecules/cell) must resist macrophage trogocytic stripping during live-cell contact "
"(maintaining post-contact p10 >= 180,000 molecules/cell) while undergoing calreticulin/phosphatidylserine dominance or caspase-dependent "
"shedding on Annexin-V+ apoptotic corpses so MerTK/AXL/TIM-4 macrophage efferocytosis (PMID:30846565) retains >= 75% target (>= 70% hard Stage-0 hold floor) of WT clearance rate and prevents "
"secondary necrotic DAMP/HMGB1 release (obs_apoptotic_effero_clearance_retention_pct_of_wt >= 70.0%; MW-R6-S1-13 & AUDIT-REF [DEC-053/060])."
),
"wetlab_contract_endpoint": "obs_apoptotic_effero_clearance_retention_pct_of_wt",
},
},
},
},
},
"alphamissense_v3_ccby4_provenance_iip_0017": _build_alphamissense_v3_ccby4_provenance_iip_0017(),
"hurdle3_receptor_and_compartment_reconciliation_iip_0018": _build_hurdle3_receptor_and_compartment_reconciliation_iip_0018(),
"biomaterial_cuff_and_catalase_structural_audit_iip_0020": _build_biomaterial_cuff_and_catalase_structural_audit_iip_0020(),
"pvr_tigit_cd226_cd96_and_hlag1_structural_audit_iip_0022": _build_pvr_and_hlag1_structural_audit_iip_0022(),
"product_function_manifest_resolution_iip_0024": _build_product_function_manifest_resolution_iip_0024(
ref_geometry_passed=ref_geometry_passed,
serpinb9_func_status=serpinb9_func_status,
cd47_pan_allele_status=cd47_pan_allele_status,
),
"icasp9_1nw9_1jxq_insertion_code_audit_iip_0024": _build_icasp9_1nw9_1jxq_insertion_code_audit_iip_0024(),
"locus2_cfh_stp_gpi_structural_provenance_iip_0031": l2_cfh_prov,
}
OUT_PATH.parent.mkdir(parents=True, exist_ok=True)
with OUT_PATH.open("w", encoding="utf-8") as f:
json.dump(atlas, f, indent=2, allow_nan=False)
f.write("\n")
print(f"[Layer 3 v0.8.0] Wrote {OUT_PATH.relative_to(REPO_ROOT)}")
print(
f" Complex 1 (3CDG HLA-E:CD94/NKG2A): {c1['trimer_to_cd94_nkg2a_interface']['heavy_atom_contact_pairs']} heavy contacts, "
f"L1 WLC force = {c1['single_chain_trimer_linker_physics']['linker_1_peptide_P9_to_B2M_Ile1']['marko_siggia_entropic_tension_pN_at_310K_lp4A']} pN, "
f"L2 WLC force = {c1['single_chain_trimer_linker_physics']['linker_2_B2M_Met99_to_HLAE_Ser2']['marko_siggia_entropic_tension_pN_at_310K_lp4A']} pN"
)
print(
f" Complex 3 (AF-P50453 SERPINB9 & 1IAU GZMB): GZMB 226/226 aligned RMSD = {c3['granzyme_b_active_site_and_s1_pocket_1IAU']['rmsd_AF_P10144_vs_1IAU_angstrom']} A, "
f"RCL 335-350 mean pLDDT = {c3['r01_c_terminal_tpt2a_tail_and_rcl_suicide_trap_geometry']['rcl_335_350_mean_plddt']}, "
f"status = {c3['r01_c_terminal_tpt2a_tail_and_rcl_suicide_trap_geometry']['functional_status']}"
)
if __name__ == "__main__":
main()