OpenIslet

scripts/run_layer3_structural_binder_plane.py

Layer 3: 3D Structural & Protein Interface Verification Plane (v0.8.0)

script Release v0.8.0 gen-eb955f8266035aba 410 KB · 25 sections

Use this file in any AI chat (paste-only or attachment-capable):

Download as text (.txt) Download section (.txt)

Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/run_layer3_structural_binder_plane.py · SHA-256: a070de200dfefd3d…

                    "thr143_og1_to_peptide_leu9_oxt_hydrogen_bond_angstrom": _pdb_dist(im9_coords, ("E", 143, "OG1"), ("G", 9, "OXT")),
                    "lys146_nz_to_peptide_leu9_o_distance_angstrom": _pdb_dist(im9_coords, ("A", 146, "NZ"), ("C", 9, "O")),
                    "lys146_nz_to_peptide_leu9_oxt_distance_angstrom": _pdb_dist(im9_coords, ("A", 146, "NZ"), ("C", 9, "OXT")),
                    "lys146_nz_to_kir2dl1_asp183_od2_salt_bridge_angstrom": _pdb_dist(im9_coords, ("A", 146, "NZ"), ("D", 183, "OD2")),
                    "lys146_nz_to_kir2dl1_glu187_oe2_distance_angstrom": _pdb_dist(im9_coords, ("A", 146, "NZ"), ("D", 187, "OE2")),
                    "lys146_nz_to_peptide_leu9_o_hydrogen_bond_angstrom": _pdb_dist(im9_coords, ("A", 146, "NZ"), ("C", 9, "O")),
                    "tyr84_oh_to_peptide_leu9_oxt_hydrogen_bond_angstrom": _pdb_dist(im9_coords, ("A", 84, "OH"), ("C", 9, "OXT")),
                    "native_l1_p9_c_to_b2m_ile1_n_euclidean_span_angstrom": _pdb_dist(im9_coords, ("C", 9, "C"), ("B", 1, "N")),
                    "native_l1_p9_c_to_b2m_met0_n_euclidean_span_angstrom": _pdb_dist(im9_coords, ("C", 9, "C"), ("B", 0, "N")),
                    "native_l2_b2m_met99_c_to_hlac_gly1_n_euclidean_span_angstrom": _pdb_dist(im9_coords, ("B", 99, "C"), ("A", 1, "N")),
                    "native_l2_b2m_met99_c_to_hlac_ser2_n_euclidean_span_angstrom": _pdb_dist(im9_coords, ("B", 99, "C"), ("A", 2, "N")),
                    "l1_open_chord_heavy_atom_obstacles_within_4p0A_excl_endpoints": {
                        "wt_all_heavy_atoms": 34,
                        "wt_sidechain_plus_cbeta_atoms": 25,
                        "y84a_all_heavy_atoms": 31,
                        "y84a_sidechain_plus_cbeta_atoms": 22,
                    },
                },
                "structural_audit_and_sct_groove_comparators": (
                    "Direct coordinate inspection of staged PDB:1EFX (SHA-256 4e432fe8...), PDB:1IM9 (SHA-256 4c21ebf9...), and PDB:3CDG shows that while HLA-E Tyr84 has 0 heavy-atom contacts < 4.5 A with CD94/NKG2A in PDB:3CDG (nearest heavy-atom distances 9.0068 A in Copy 1 [A:TYR84:OH-J:ASN160:ND2] and 8.7331 A in Copy 2 [C:TYR84:OH-E:ASN160:ND2]), "
                    "HLA-C Tyr84 directly contacts KIR2DL2/KIR2DL1 Asp183 on the D2 loop (3.5584 A in 1EFX chains A/D with 4 atom pairs < 4.5 A; 3.2425 A [CE1] / 3.3037 A [OH] in 1IM9 chains A/D with 8 protein atom pairs < 4.5 A; Moradi et al. 2021 PMID:33846289) "
                    "and hydrogen-bonds to peptide P9 Leu9:OXT (3.5169 A in 1EFX, 2.8531 A in 1IM9, alongside Thr143:OG1-Leu9:OXT at 2.6890 A in 1EFX and 2.9926 A in 1IM9 KIR-free E/G [3.5593 A in KIR-bound A/C], Asn80:ND2-Leu9:O at 2.8348 A and Ser77:OG-Leu9:O at 4.4829 A in 1EFX, while Lys146:NZ lies at 5.0422 A [O] / 5.5887 A [OXT] in 1EFX and 4.5128 A [O] / 4.0242 A [OXT] in 1IM9 because Lys146:NZ forms an inter-chain salt bridge to KIR Asp183:OD2 at 2.4601 A in 1EFX and 2.6825 A in 1IM9 [and lies 4.5018 A / 5.9969 A from KIR Glu187]). Moreover, along the straight open chord from P9:C to B2M Ile1:N, 31-34 heavy atoms (23-25 sidechain+C_beta atoms) lie within 4.0 A even after Y84A (31 heavy / 22-23 sidechain+C_beta), confirming that L1 must follow the exterior surface geodesic rather than a straight chord. "
                    "Gate 0B-SCT therefore evaluates four mechanistically distinct constructs head-to-head by monomeric KIR2DL1/2/3 SPR (requiring K_D <= 10.29 uM [>=70% of native 7.2 uM], or <=15.0 uM dimeric KIR-Fc screen): "
                    "(1) Y84A with 20-aa (G4S)4 L1, (2) L3-B-SCT-WTY84-L1-25AA (intact WT-Y84 with extended 25-aa (G4S)5 L1), (3) L3-B-SCT-DT1-Y84C-L1CYS2 (HLA-C[Y84C, A139-WT] + L1=GCGGS(G4S)3 peptide-linker disulfide trap, 2 engineered cysteines; Truscott et al. 2007 PMID:17475856), and (4) L3-B-SCT-DT2-Y84C-A139C (HLA-C[Y84C/A139C] alpha1-alpha2 F-pocket staple with non-cysteine (G4S)4 L1, 2 engineered cysteines; Finton et al. 2023 PMID:37207206; AUDIT-REF, AUDIT-REF, AUDIT-REF & AUDIT-REF)."
                ),
                "nkg2a_vs_nkg2c_2d_synaptic_selectivity_bound_sonnet55_r4": {
                    "target_inhibitory_nkg2a_occupancy_theta_A_min": 0.50,
                    "target_activating_nkg2c_occupancy_theta_C_max": 0.20,
                    "minimum_required_selectivity_ratio_KC_over_KA": round((0.50 / (1.0 - 0.50)) / (0.20 / (1.0 - 0.20)), 4),
                    "vmaprtlvl_hla_a2_leader_kd_uM": {
                        "nkg2a_kd_uM": 2.10,
                        "nkg2c_kd_uM": 6.52,
                        "nkg2a_cd94_kd_uM": 2.10,
                        "nkg2c_cd94_kd_uM": 6.52,
                        "selectivity_ratio_KC_over_KA": round(6.52 / 2.10, 4),
                        "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 6.52 / 2.10), 4),
                        "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": False,
                        "primary_citation": "Lin et al. 2023 Nature Immunology PMID:37264229 Supp. Table 1 (soluble HLA-E*01:03 refolded monomer 3D SPR; retracts prior unverified 3.35 / 10.4 uM working placeholder)",
                    },
                    "vmaprtlil_hla_cw3_leader_kd_uM": {
                        "nkg2a_kd_uM": 1.33,
                        "nkg2c_kd_uM": 4.35,
                        "nkg2a_cd94_kd_uM": 1.33,
                        "nkg2c_cd94_kd_uM": 4.35,
                        "selectivity_ratio_KC_over_KA": round(4.35 / 1.33, 4),
                        "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 4.35 / 1.33), 4),
                        "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": False,
                        "primary_citation": "Lin et al. 2023 Nature Immunology PMID:37264229 Supp. Table 1 (soluble HLA-E*01:03 refolded monomer 3D SPR; Vales-Gomez et al. 1999 PMID:10428963 Table I reports CD94/NKG2A K_D = 7.35 uM; retracts prior unverified 2.9 / 17.2 uM citation)",
                    },
                    "vmaprtlll_hla_a1_c_leader_challenger_kd_uM": {
                        "nkg2a_kd_uM": 1.70,
                        "nkg2c_kd_uM": 4.97,
                        "nkg2a_cd94_kd_uM": 1.70,
                        "nkg2c_cd94_kd_uM": 4.97,
                        "selectivity_ratio_KC_over_KA": round(4.97 / 1.70, 4),
                        "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 4.97 / 1.70), 4),
                        "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": False,
                        "primary_citation": "Lin et al. 2023 Nature Immunology PMID:37264229 Supp. Table 1 (soluble HLA-E*01:03 refolded monomer 3D SPR; retracts prior un-cited 5.2 / 31.2 uM transposition)",
                    },
                    "vmaprtlfl_hla_g_leader_kd_uM": {
                        "nkg2a_kd_uM": 0.80,
                        "nkg2c_kd_uM": 5.20,
                        "nkg2a_cd94_kd_uM": 0.80,
                        "nkg2c_cd94_kd_uM": 5.20,
                        "kaiser_2008_pmid_18448674_table1": {
                            "nkg2a_kd_uM": 0.80,
                            "nkg2c_kd_uM": 5.20,
                            "nkg2a_cd94_kd_uM": 0.80,
                            "nkg2c_cd94_kd_uM": 5.20,
                            "selectivity_ratio_KC_over_KA": round(5.20 / 0.80, 4),
                            "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 5.20 / 0.80), 4),
                            "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": True,
                        },
                        "vales_gomez_1999_pmid_10428963_table1": {
                            "nkg2a_kd_uM": 2.33,
                            "nkg2c_kd_uM": 10.77,
                            "nkg2a_cd94_kd_uM": 2.33,
                            "nkg2c_cd94_kd_uM": 10.77,
                            "selectivity_ratio_KC_over_KA": round(10.77 / 2.33, 4),
                            "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 10.77 / 2.33), 4),
                            "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": True,
                        },
                        "lin_2023_pmid_37264229_hlae_0103_supp_table1": {
                            "nkg2a_kd_uM": 0.18,
                            "nkg2c_kd_uM": 0.71,
                            "nkg2a_cd94_kd_uM": 0.18,
                            "nkg2c_cd94_kd_uM": 0.71,
                            "selectivity_ratio_KC_over_KA": round(0.71 / 0.18, 4),
                            "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 0.71 / 0.18), 4),
                            "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": False,
                        },
                        "note": "In historical monomer SPR datasets, HLA-G leader VMAPRTLFL gave K_C / K_A = 4.6223x in explicit HLA-E*01:01 (Vales-Gomez et al. 1999 PMID:10428963) and 6.50x in Kaiser et al. 2008 PMID:18448674, whereas in soluble HLA-E*01:03 SPR across all 6 functional human leaders (Lin et al. 2023 PMID:37264229 Supp. Table 1) VMAPRTLFL is 0.18 / 0.71 uM = 3.9444x (< 4.0 central estimate) and binds NKG2C 9.18x tighter than VMAPRTLVL (6.52 / 0.71; Lauterbach et al. 2015 PMID:26382247 3.2x NKG2A- NKG2C+ degranulation agonist trap); VMAPRTLFL is therefore calibrated as a positive NKG2C agonist control rather than a promotion challenger (IIP-0016 / DEC-094).",
                    },
                    "vmpprtlll_sp5a_leader_kd_uM": {
                        "nkg2a_kd_uM": 1.42,
                        "nkg2c_kd_uM": 4.21,
                        "selectivity_ratio_KC_over_KA": round(4.21 / 1.42, 4),
                        "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 4.21 / 1.42), 4),
                        "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": False,
                        "primary_citation": "Lin et al. 2023 Nature Immunology PMID:37264229 Supp. Table 1 (soluble HLA-E*01:03 SPR)",
                    },
                    "vmaprtvll_sp6b_leader_kd_uM": {
                        "nkg2a_kd_uM": 2.98,
                        "nkg2c_kd_uM": 8.00,
                        "selectivity_ratio_KC_over_KA": round(8.00 / 2.98, 4),
                        "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 8.00 / 2.98), 4),
                        "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": False,
                        "primary_citation": "Lin et al. 2023 Nature Immunology PMID:37264229 Supp. Table 1 (soluble HLA-E*01:03 SPR)",
                    },
                    "soluble_3d_spr_kd_reference": {
                        "vmaprtlvl_hla_a2_leader_kd_uM": {
                            "nkg2a_kd_uM": 2.10,
                            "nkg2c_kd_uM": 6.52,
                            "nkg2a_cd94_kd_uM": 2.10,
                            "nkg2c_cd94_kd_uM": 6.52,
                            "selectivity_ratio_KC_over_KA": round(6.52 / 2.10, 4),
                            "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 6.52 / 2.10), 4),
                            "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": False,
                            "primary_citation": "Lin et al. 2023 Nature Immunology PMID:37264229 Supp. Table 1",
                        },
                        "vmaprtlil_hla_cw3_leader_kd_uM": {
                            "nkg2a_kd_uM": 1.33,
                            "nkg2c_kd_uM": 4.35,
                            "nkg2a_cd94_kd_uM": 1.33,
                            "nkg2c_cd94_kd_uM": 4.35,
                            "selectivity_ratio_KC_over_KA": round(4.35 / 1.33, 4),
                            "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 4.35 / 1.33), 4),
                            "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": False,
                            "primary_citation": "Lin et al. 2023 Nature Immunology PMID:37264229 Supp. Table 1",
                        },
                        "vmaprtlll_hla_a1_c_leader_challenger_kd_uM": {
                            "nkg2a_kd_uM": 1.70,
                            "nkg2c_kd_uM": 4.97,
                            "nkg2a_cd94_kd_uM": 1.70,
                            "nkg2c_cd94_kd_uM": 4.97,
                            "selectivity_ratio_KC_over_KA": round(4.97 / 1.70, 4),
                            "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 4.97 / 1.70), 4),
                            "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": False,
                            "primary_citation": "Lin et al. 2023 Nature Immunology PMID:37264229 Supp. Table 1",
                        },
                        "vmaprtlfl_hla_g_leader_kd_uM": {
                            "nkg2a_kd_uM": 0.80,
                            "nkg2c_kd_uM": 5.20,
                            "nkg2a_cd94_kd_uM": 0.80,
                            "nkg2c_cd94_kd_uM": 5.20,
                            "selectivity_ratio_KC_over_KA": round(5.20 / 0.80, 4),
                            "theta_C_at_theta_A_0p50": round(1.0 / (1.0 + 5.20 / 0.80), 4),
                            "simultaneous_thetaA_ge_0p50_and_thetaC_le_0p20_feasible": True,
                            "primary_citation": "Kaiser et al. 2008 PMID:18448674 Table 1 (0.80 / 5.20 uM = 6.50x); Vales-Gomez et al. 1999 PMID:10428963 Table I (2.33 / 10.77 uM = 4.6223x)",
                        },
                        "covalent_sct_linker_selectivity_qualification_status": "UNPROVEN_IN_SCT_FORMAT_REQUIRES_GATE_0A_SPR",
                    },
                    "covalent_sct_linker_selectivity_qualification_status": "UNPROVEN_IN_SCT_FORMAT_REQUIRES_GATE_0A_SPR",
                    "biophysical_note": (
                        "Under mass-action receptor occupancy theta_R = L / (L + K_R) at any shared 2D synaptic HLA-E density L (with equal confinement factors alpha_2D_A == alpha_2D_C), the odds ratio (theta_A / (1 - theta_A)) / (theta_C / (1 - theta_C)) = K_C / K_A is invariant to L; "
                        "satisfying theta_A >= 0.50 and theta_C <= 0.20 simultaneously at shared L requires K_C / K_A >= 1.0 / 0.25 = 4.0 (and scales by L_IFNg / L_rest under inducible swings: 25.5339x, 18.5376x, or 11.1226x under alpha_2D_A == alpha_2D_C). In soluble 3D SPR of non-covalently refolded HLA-E*01:03 monomers across all 6 functional human leaders (Lin et al. 2023 Nature Immunology PMID:37264229 Supp. Table 1), "
                        "0/6 central estimates reach 4.0: VMAPRTLVL (2.10 / 6.52 uM -> 3.1048), VMAPRTLIL (1.33 / 4.35 uM -> 3.2707), VMAPRTLLL (1.70 / 4.97 uM -> 2.9235), VMPPRTLLL (1.42 / 4.21 uM -> 2.9648), VMAPRTVLL (2.98 / 8.00 uM -> 2.6846), and HLA-G leader VMAPRTLFL (0.18 / 0.71 uM -> 3.9444, component 95% CIs 0.15-0.21 and 0.59-0.86 uM), where VMAPRTLFL binds NKG2C 9.18x tighter than VMAPRTLVL and acts as a 3.2x primary NKG2A- NKG2C+ degranulation agonist trap (Lauterbach et al. 2015 PMID:26382247), kept distinct from separate historical monomer SPR datasets in Vales-Gomez et al. 1999 PMID:10428963 Table I (explicit HLA-E*01:01: 2.33 / 10.77 uM = 4.6223x) and Kaiser et al. 2008 PMID:18448674 Table 1 (0.80 / 5.20 uM = 6.50x). "
                        "Moreover, covalently tethering the P9 C-terminus to mature B2M via a 15-20 aa (G4S)3-4 linker alters the P8/P9 F-pocket / CD94-NKG2A/C interface, so 3D soluble monomer ratios cannot be extrapolated to SCTs without direct SPR and paired primary functional testing: "
                        "Gate 0A-NK (Switch S10 v3; IIP-0016 / DEC-094) therefore requires recorded covalent-SCT SPR (K_D[NKG2A] upper95 <= 10.0 uM and K_D[NKG2C]) alongside paired Regime II resting + Regime I 24-h IFN-gamma primary sorted NKG2A+ NKG2C- and NKG2A- NKG2C+ (KIR2DL+ and KIR2DL-) NK lysis/CD107a, UL40-reactive CD8+ CTL non-escape, 5'/3'-RACE, and GY-010 clearance across the 20-construct Mode-B comparator panel (AUDIT-REF, AUDIT-REF, AUDIT-REF & AUDIT-REF)."
                    ),
                    "pure_nkg2a_neg_nkg2c_pos_subset_and_hlae_d227k_t228a_ctl_audit_sol61_r5": {
                        "primary_citations": ["PMID:32134744", "PMID:33599743", "PMID:20844204"],
                        "pure_nkg2a_neg_nkg2c_pos_subset_zero_nkg2a_inhibition": True,
                        "nkg2a_neg_nkg2c_pos_kir2dl_pos_subpopulation_protection": "Cognate KIR2DL1/2/3 inhibition via CIITA::HLA-C*03:04/04:01 SCT (Track 2 B'-SCT)",
                        "nkg2a_neg_nkg2c_pos_kir2dl_neg_subpopulation_protection": (
                            "Because KIR2DL1/2/3-negative NKG2A- NKG2C+ adaptive NK cells lack both NKG2A and inhibitory KIR2DL receptors, "
                            "and primary human NK cells exhibit minimal or highly heterogeneous endogenous PD-1 expression (Judge et al. 2020 J Clin Invest PMID:32134744; Davis et al. 2021 Blood Adv PMID:33599743), "
                            "neither Track 2 B'-SCT nor PD-L1 engagement alone can be assumed to suppress degranulation on this receptor-negative sub-compartment; "
                            "protection requires direct Stage-0 Gate 0A-NK functional clearance on sorted NKG2A- KIR2DL1/2/3- NKG2C+ adaptive NK cells (obs_nkg2a_neg_kir2dl_neg_nkg2c_pos_nk_lysis_pct <= 8.0%) "
                            "and/or peptide-selective loss of NKG2C engagement (P5/P8 SCT selectivity mutant with K_C > 50 uM) plus cytosolic L3-BF-B SERPINB9 (AUDIT-REF, AUDIT-REF & AUDIT-REF)."
                        ),
                        "required_orthogonal_protection_for_pure_nkg2a_neg_nkg2c_pos_subset": "KIR2DL1/2/3 engagement via CIITA::HLA-C*03:04/04:01 SCT (Track 2 B'-SCT, effective only on KIR2DL+ subset) plus direct sorted NKG2A- KIR2DL1/2/3- NKG2C+ NK lysis clearance (<= 8.0%) and exact-SCT NKG2C non-activation (noting minimal/heterogeneous NK PD-1 per Judge et al. 2020 PMID:32134744 & Davis et al. 2021 PMID:33599743)",
                        "hlae_d227k_t228a_cd8_coreceptor_ablation_requires_cmv_ctl_qualification": True,
                        "hlae_d227k_t228a_vs_wt_cmv_cd8_ctl_challenge_gate_sol61_r6": {
                            "finding_ids": ["AUDIT-REF", "AUDIT-REF"],
                            "primary_citations": [
                                "Wooldridge et al. 2005 J Biol Chem PMID:15837791 (direct D227K/T228A MHC-I CD8-null precedent)",
                                "Wooldridge et al. 2010 J Immunol PMID:20844204",
                            ],
                            "mechanistic_scope": (