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…

                            "range_open_copies_common_ile1_ile1a_anchor_angstrom": [36.7, 40.3],
                            "range_open_copies_common_ile1_ile1a_anchor_exact_angstrom": [36.7310, 40.3379],
                            "open_copies": "7/8 (3BZE_GHS closed)",
                        },
                        "endpoint_convention_note": (
                            "range_open_copies_angstrom uses author seq_id=1 first B2M N-terminus coordinate (MET1:N fMet0 leader in 1MHE copies 1-2, "
                            "yielding lower bounds 20.8/30.1/31.9/33.2 A), whereas range_open_copies_common_ile1_ile1a_anchor_angstrom normalizes all 8 copies "
                            "to native Ile1 (insertion-coded ILE1A:N in 1MHE copies 1-2, yielding lower bounds 22.4/32.9/35.4/36.7 A [22.4241/32.9005/35.3878/36.7310 A exact]; AUDIT-REF)."
                        ),
                    },
                    "grid_spacing_discretization_sensitivity_3cdg_copy1_r_obs_2p5A_astra_r3": {
                        "spacing_0p25A_angstrom": 22.7,
                        "spacing_0p25A_raw_angstrom": 22.6563,
                        "spacing_0p25A_r_obs_2p55A_percolation_jump_angstrom": 34.0,
                        "spacing_0p25A_r_obs_2p55A_percolation_jump_raw_angstrom": 33.9606,
                        "spacing_0p25A_r_obs_2p55_to_3p40A_outer_rim_range_angstrom": [34.0, 39.2],
                        "spacing_0p25A_r_obs_2p55_to_3p40A_outer_rim_raw_range_angstrom": [33.9606, 39.1559],
                        "spacing_0p50A_r_obs_2p55_to_3p40A_outer_rim_raw_range_angstrom": [34.2043, 39.0095],
                        "spacing_0p50A_angstrom": voxel_geodesic_3cdg_c1_r2p5,
                        "spacing_1p00A_angstrom": voxel_geodesic_3cdg_c1_r2p5_sp1p0,
                        "methodological_note": (
                            "At 0.25 A grid spacing with r_obs = 2.50 A and 4.0 A anchor exemption, the executable 26-connected solver (_compute_3d_voxel_dijkstra_geodesic_3cdg_copy1) finds a "
                            "22.7 A (22.6563 A raw; ~22.3 A under finer h=0.20/0.125 A or alternate grid origin) narrow inter-sphere crevice between P9:C and Ile1:N, whereas increasing r_obs by +0.05 A "
                            "to r_obs = 2.55 A pinches off that sub-angstrom crevice and jumps to 34.0 A (33.9606 A raw; 33.54 A under alternate origin) along the outer alpha1/alpha2/B2M rim, "
                            "spanning 33.9606-39.1559 A (34.0-39.2 A rounded) at h = 0.25 A vs 34.2043-39.0095 A (34.2-39.0 A rounded) at h = 0.50 A across r_obs in [2.55, 3.40] A "
                            "(fractional extension d/L_c = 0.6469-0.7458 for 15-aa L1 vs 0.4852-0.5594 for 20-aa L1 on h = 0.25 A, and remaining a discrete-grid node-center screen [where 26-connected diagonal/face edges have 0 continuous segment-sphere penetrations at headline h = 0.50 A, r_obs = 2.5/2.8/3.1/3.4 A, 2 at h = 0.50 A, r_obs = 2.55 A, and 3 at h = 1.00 A, r_obs = 2.50 A] that motivates "
                            "empirical Stage-0 testing of both 15-aa (G4S)3 and 20-aa (G4S)4 L1 linkers; AUDIT-REF, D3-03, AUDIT-REF, AUDIT-REF & AUDIT-REF)."
                        ),
                    },
                    "r_obs_2p5A": {"3cdg_copy1_angstrom": 35.5, "live_voxel_dijkstra_3cdg_copy1_angstrom": voxel_geodesic_3cdg_c1_r2p5, "range_8_copies_angstrom": [32.7, 38.0], "live_voxel_dijkstra_range_open_copies_angstrom": [20.8, 39.8], "open_copies": "8/8"},
                    "r_obs_2p8A": {"3cdg_copy1_angstrom": 36.2, "live_voxel_dijkstra_3cdg_copy1_angstrom": voxel_geodesic_3cdg_c1_r2p8, "range_open_copies_angstrom": [34.6, 41.2], "live_voxel_dijkstra_range_open_copies_angstrom": [30.1, 35.6], "open_copies": "7/8 (imported surface route: 3CDG copy 2 closed; live 0.5 A voxel grid: 3BZE_GHS closed)"},
                    "r_obs_3p1A": {"3cdg_copy1_angstrom": 38.7, "live_voxel_dijkstra_3cdg_copy1_angstrom": voxel_geodesic_3cdg_c1_r3p1, "range_open_copies_angstrom": [38.1, 43.0], "live_voxel_dijkstra_range_open_copies_angstrom": [31.9, 36.8], "open_copies": "6/8 imported / 7/8 live 0.5 A voxel grid"},
                    "r_obs_3p4A": {"3cdg_copy1_angstrom": None, "live_voxel_dijkstra_3cdg_copy1_angstrom": voxel_geodesic_3cdg_c1_r3p4, "range_open_copies_angstrom": [39.7, 40.0], "live_voxel_dijkstra_range_open_copies_angstrom": [33.2, 40.3], "open_copies": "2/8 imported / 7/8 live 0.5 A voxel grid"},
                    "open_chord_cylinder_vs_capsule_collision_convention_note": (
                        "Open-segment cylinder projection (0 < t < 1 along P9:C -> Ile1:N, excluding P9 and B2M residues 0-1) intersects 37 heavy atoms in 3CDG copy 1 "
                        "(range 31-38 across the 8 copies), whereas clamping 0 <= t <= 1 (full capsule including hemispherical end-caps around P9:C and Ile1:N on the same "
                        "non-anchor atom set, where the 4.0 A P9:C sphere intersects 5 non-anchor atoms [P:Phe8:C, P:Phe8:O, A:Asn77:OD1, A:Tyr84:OH, A:Ser143:OG] and the "
                        "4.0 A Ile1:N sphere intersects 2 non-anchor atoms [B:Gln2:N, A:Asp119:O]) intersects 40 deduplicated heavy atoms in 3CDG copy 1 (range 36-42 across the 8 copies, "
                        "adding 3 outer end-cap atoms P:Phe8:C, P:Phe8:O, and B:Gln2:N; un-deduplicated cylinder + P9:C-sphere + Ile1:N-sphere sum on the identical non-anchor atom set is "
                        "37 + 5 + 2 = 44 [range 39-46 across the 8 copies], or 43 [range 35-44] when omitting the single inner-sphere overlap A:Asp119:O; S55R2-D3-02, D3-03, AUDIT-REF & AUDIT-REF)."
                    ),
                },
                "euclidean_chord_vs_obstacle_bypass_contour_slack_distinction_kimi31_r2": {
                    "euclidean_chord_3cdg_copy1_angstrom": round(span_l1_ile1, 4),
                    "l1_15aa_wlc_force_at_euclidean_chord_19p43A_pN": worm_like_chain_metrics(15, span_l1_ile1)["marko_siggia_entropic_tension_pN_at_310K_lp4A"],
                    "l1_20aa_wlc_force_at_euclidean_chord_19p43A_pN": worm_like_chain_metrics(20, span_l1_ile1)["marko_siggia_entropic_tension_pN_at_310K_lp4A"],
                    "l1_15aa_contour_slack_Lc_minus_Smin_at_35p6_and_43p7A_angstrom": [16.9, 8.8],
                    "l1_20aa_contour_slack_Lc_minus_Smin_at_35p6_and_43p7A_angstrom": [34.4, 26.3],
                    "note": (
                        "Ordinary Marko-Siggia WLC evaluates tension against Euclidean end-to-end anchor separation R = ||r_N - r_C|| (19.4277 A in 3CDG copy 1, yielding "
                        "8.025 pN for 15-aa and 5.420 pN for 20-aa), whereas routing around the alpha1/alpha2/B2M steric obstacle consumes S_min = 35.6-43.7 A of chain contour "
                        "(leaving 16.9 / 8.8 A contour slack for 15-aa vs 34.4 / 26.3 A for 20-aa); evaluating F_MS(d = S_min) gives 30.396 / 101.441 pN (15-aa) vs 13.843 / 22.955 pN (20-aa) "
                        "as an upper-bound contour-extension screen rather than a direct post-folding equilibrium anchor tension (AUDIT-REF)."
                    ),
                },
                "l1_15aa_g4s3_contour_length_at_3p5A_angstrom": 52.5,
                "l1_15aa_geodesic_fractional_extension_at_35p6A": round(35.6 / 52.5, 4),
                "l1_15aa_geodesic_wlc_metrics_at_35p6A": worm_like_chain_metrics(15, 35.6),
                "l1_15aa_geodesic_wlc_metrics_at_max_copy_43p7A": worm_like_chain_metrics(15, 43.7),
                "l1_20aa_g4s4_challenger_contour_length_at_3p5A_angstrom": 70.0,
                "l1_20aa_g4s4_challenger_geodesic_fractional_extension_at_35p6A": round(35.6 / 70.0, 4),
                "l1_20aa_g4s4_challenger_geodesic_wlc_metrics_at_35p6A": worm_like_chain_metrics(20, 35.6),
                "l1_20aa_g4s4_challenger_geodesic_wlc_metrics_at_max_copy_43p7A": worm_like_chain_metrics(20, 43.7),
                "stage0_intact_sct_and_signal_peptidase_gate_p02": (
                    "Because the straight 19.43 A chord in 3CDG copy 1 ([17.96, 19.55] A across all 8 crystallographic copies in 3CDG [2], 1MHE [2], "
                    f"and 3BZE [4]; mean = 19.004468 A, SD_pop = 0.611622 A, SD_sample = 0.653851 A; [19.03, 19.55] A across the 6 Ile1-resolved copies in 3CDG/3BZE vs 17.96 / 18.00 A [{per_copy_chord_dict['1MHE_copy1_ABP']:.4f} A in 1MHE copy 1 and {per_copy_chord_dict['1MHE_copy2_CDQ']:.4f} A in 1MHE copy 2] to author seq_id=1 MET1:N [fMet0 recombinant leader] in 1MHE, whereas 1MHE's insertion-coded native Ile1 [ILE1A:N] lies at 19.5652 / 19.6179 A; AUDIT-REF, AUDIT-REF, AUDIT-REF, AUDIT-REF, AUDIT-REF & AUDIT-REF) from P9(Leu9:C) to B2M(Ile1:N) traverses 31-38 internal heavy atoms "
                    "(37 in 3CDG copy 1 / 38 in 3CDG copy 2 under open-segment 0 < t < 1 cylinder projection excluding P9 and B2M residues 0-1, or 36-42 deduplicated [40 in 3CDG copy 1; 39-46 / 44 un-deduplicated cylinder + P9:C-sphere + Ile1:N-sphere sum on the identical non-anchor atom set, or 35-44 / 43 omitting inner-sphere A:Asp119:O] under 0 <= t <= 1 capsule projection; S55R2-D3-03, AUDIT-REF & AUDIT-REF) of the HLA-E alpha1/alpha2/B2M trimer, the excluded-volume surface detour path around the alpha1 "
                    "F-pocket rim is parameterized at 33.5-43.7 A across the 8 crystallographic copies in 3CDG/1MHE/3BZE (35.6 A imported surface-detour reference in 3CDG copy 1; "
                    f"live 26-connected 0.5 A voxel Dijkstra in 3CDG copy 1 gives {voxel_geodesic_3cdg_c1_r2p5}/{voxel_geodesic_3cdg_c1_r2p8}/{voxel_geodesic_3cdg_c1_r3p1}/{voxel_geodesic_3cdg_c1_r3p4} A across r_obs = 2.5/2.8/3.1/3.4 A [8-copy open ranges [20.8, 39.8] / [30.1, 35.6] / [31.9, 36.8] / [33.2, 40.3] A; grid-spacing sensitivity 22.7 / {voxel_geodesic_3cdg_c1_r2p5} / {voxel_geodesic_3cdg_c1_r2p5_sp1p0} A at 0.25 / 0.50 / 1.00 A], vs imported surface-route table [32.7, 38.0] / [34.6, 41.2] / [38.1, 43.0] A, and in 3CDG copy 1 the nearest non-peptide heavy-chain neighbors to P9:C are A:Ser143:OG at 3.27 A, A:Asn77:OD1 at 3.93 A, and A:Tyr84:OH at 4.00 A [while 2.88 A is intrapeptide P8(Phe8):C, and residue 143 is Ser143], and to B2M Ile1:N are B:Met0:C at 1.32 A [peptide bond], B:Gln2:N at 3.58 A [adjacent backbone], and A:Asp119:O at 3.67 A [heavy-chain; with P9:C -> Ile1:CA = 20.50 A]; S55R2-D3-02, S2-06, AUDIT-REF & AUDIT-REF,03; "
                    "conditional on the 33.5-43.7 A route lengths, Marko-Siggia WLC gives fractional extension 0.6781 / 30.396 pN for 15-aa (G4S)3 at 35.6 A and "
                    "x = 43.7/52.5 = 0.832381 / 101.441 pN at the 43.7 A upper tail copy, "
                    "whereas 20-aa L1=(G4S)4 reduces conditional tension to 13.843 pN at 35.6 A and x = 43.7/70.0 = 0.624286 / 22.955 pN at 43.7 A, "
                    "and Stage-0 Gate P02 verifies intact SCT Edman/LC-MS Ala20|Val21 cleavage, PD-L1 Ala18|Phe19 cleavage, and post-P2A CD47-IgV-GPI PCA1 pyroglutamate cyclization (-17.03 Da via top-down/intact LC-MS or after pyroglutamate aminopeptidase [PGP] deblocking, because N-terminal pyroglutamate blocks classic PITC Edman degradation); "
                    "AUDIT-REF, AUDIT-REF, AUDIT-REF, AUDIT-REF, S55R2-D3-02, AUDIT-REF, AUDIT-REF,02,06 & AUDIT-REF,03)."
                ),
            },
        },
        "s10_hlae_nkg2a_nkg2c_selectivity_and_14pdb_audit_iip_0016": {
            "proposal_id": "IIP-0016",
            "decision_id": "DEC-094",
            "lin_2023_pmid_37264229_hlae_0103_complete_6_leader_spr_table": [
                {"sp_group": "1A/3A/4A/2C", "nonamer": "VMAPRTLLL", "kd_nkg2a_uM": 1.70, "kd_nkg2a_ci95_uM": [1.50, 1.93], "kd_nkg2c_uM": 4.97, "kd_nkg2c_ci95_uM": [4.80, 5.14], "kc_over_ka_point_estimate": 2.9235, "ul40_217_isolates_pct": 16.0, "lauterbach_2015_pmid_26382247_nkg2c_cd107a": "non-enhancing"},
                {"sp_group": "2A", "nonamer": "VMAPRTLVL", "kd_nkg2a_uM": 2.10, "kd_nkg2a_ci95_uM": [1.93, 2.28], "kd_nkg2c_uM": 6.52, "kd_nkg2c_ci95_uM": [6.41, 6.63], "kc_over_ka_point_estimate": 3.1048, "ul40_217_isolates_pct": 12.0, "lauterbach_2015_pmid_26382247_nkg2c_cd107a": "non-enhancing"},
                {"sp_group": "5A", "nonamer": "VMPPRTLLL", "kd_nkg2a_uM": 1.42, "kd_nkg2a_ci95_uM": [1.22, 1.65], "kd_nkg2c_uM": 4.21, "kd_nkg2c_ci95_uM": [4.06, 4.37], "kc_over_ka_point_estimate": 2.9648, "ul40_217_isolates_pct": 0.0, "lauterbach_2015_pmid_26382247_nkg2c_cd107a": "1.3-fold NKG2A- NKG2C+ CD107a enhancement"},
                {"sp_group": "6B/7B", "nonamer": "VMAPRTVLL", "kd_nkg2a_uM": 2.98, "kd_nkg2a_ci95_uM": [2.81, 3.15], "kd_nkg2c_uM": 8.00, "kd_nkg2c_ci95_uM": [7.84, 8.16], "kc_over_ka_point_estimate": 2.6846, "ul40_217_isolates_pct": 0.0, "lauterbach_2015_pmid_26382247_nkg2c_cd107a": "non-enhancing; cross-reactive UL40/HLA-E CD8+ CTL recognition reported in Jouand et al. 2018 PMID:29709038"},
                {"sp_group": "1C", "nonamer": "VMAPRTLIL", "kd_nkg2a_uM": 1.33, "kd_nkg2a_ci95_uM": [1.15, 1.53], "kd_nkg2c_uM": 4.35, "kd_nkg2c_ci95_uM": [4.24, 4.46], "kc_over_ka_point_estimate": 3.2707, "ul40_217_isolates_pct": 41.0, "lauterbach_2015_pmid_26382247_nkg2c_cd107a": "1.3-fold NKG2A- NKG2C+ CD107a enhancement"},
                {"sp_group": "G", "nonamer": "VMAPRTLFL", "kd_nkg2a_uM": 0.18, "kd_nkg2a_ci95_uM": [0.15, 0.21], "kd_nkg2c_uM": 0.71, "kd_nkg2c_ci95_uM": [0.59, 0.86], "kc_over_ka_point_estimate": 3.9444, "ul40_217_isolates_pct": 0.46, "lauterbach_2015_pmid_26382247_nkg2c_cd107a": "3.2-fold NKG2A- NKG2C+ CD107a enhancement + NKG2C internalization (agonist trap)"},
            ],
            "hlae_0101_vs_0103_assay_regime_separation": (
                "All 6 functional human HLA-I leaders in Lin et al. 2023 (PMID:37264229, Supplementary Table 1, soluble HLA-E*01:03 SPR) "
                "have point-estimate K_C/K_A < 4.0x (2.6846x-3.9444x; VMAPRTLFL component 95% CIs are 0.15-0.21 uM and 0.59-0.86 uM while absolute "
                "K_C = 0.71 uM is a 9.18x tighter NKG2C agonist trap than VMAPRTLVL). Historical monomer SPR ratios > 4.0x come from separate "
                "experimental preparations (Vales-Gomez et al. 1999 PMID:10428963 Table I, explicit HLA-E*01:01 monomer: HLA-G VMAPRTLFL = 2.33 / 10.77 uM = 4.6223x, "
                "Cw*0302 VMAPRTLIL = 7.35 / >=35.4 uM, B*0702 VMAPRTVLL = 11.23 / >=56.2 uM, B*5801 VTAPRTVLL = 17.06 / >=238 uM; Kaiser et al. 2008 "
                "PMID:18448674 Table 1 monomer SPR: WT VMAPRTLFL = 0.80 / 5.20 uM = 6.50x, SPR-only R5K VMAPKTLFL = 12.40 / 10.60 uM = 0.8548x) and are kept "
                "separate from Lin 2023 rather than spliced across studies. Strong et al. 2003 (PMID:12411439) establishes thermal-stability/surface-level "
                "differences between HLA-E*01:03 (Gly107) and HLA-E*01:01 (Arg107) without groove shift, while Kaiser et al. 2005 (PMID:15728498) examines "
                "soluble NKG2x peptide-dependent affinity across heavy-chain allotypes."
            ),
            "conditional_dynamic_swing_corollary": {
                "general_formula": "K_C / K_A >= [a / (1 - a)] * [(1 - c) / c] * (L_IFNg / L_rest) * (alpha_2D_A / alpha_2D_C)",
                "equal_alpha_condition_note": (
                    "Under monomeric Langmuir 2D synaptic equilibrium and conditional on equal effective 2D confinement factors "
                    "(alpha_2D_A == alpha_2D_C), maintaining resting NKG2A occupancy >= 0.50 alongside 24-h IFN-gamma NKG2C occupancy <= 0.20 "
                    "across inducible swings yields conditional sensitivity ratios K_C/K_A >= 25.5339x (10,890 -> 69,516 Layer-2 prior), >= 18.5376x "
                    "(15,000 -> 69,516 Gate 0A floor), or >= 11.1226x (25,000 -> 69,516 release floor), vs exact 4.0000x for constitutive Arm 1A "
                    "(66,744 -> 66,744); because subset-specific alpha_2D_A / alpha_2D_C, cell-contact geometry, and multivalent SCT avidity are unmeasured, "
                    "functional paired resting + 24-h IFN-gamma primary NK lysis/CD107a gates govern Stage-0 Gate 0A alongside recorded covalent-SCT SPR "
                    "K_D(NKG2A) and K_D(NKG2C)."
                ),
            },
            "pdb_14_structure_reconciled_audit": {
                "peptide_bound_13_structures": ["1MHE", "3BZE", "3CDG", "1KPR", "1KTL", "2ESV", "3BZF", "3CII", "5W1V", "5W1W", "6GH1", "7BH8", "7P4B"],
                "unliganded_receptor_structure_excluded_from_chords": "3BDW (unliganded CD94/NKG2A heterodimer, Sullivan et al. 2007 PMID:18083576)",
                "nterm_resolved_12_structures_first_au_copy_chord_range_A": [17.15, 20.70],
                "nterm_resolved_12_structures_all_33_au_copies_chord_range_A": [17.15, 21.53],
                "pdb_3bzf_disordered_ile1_gln2_chord_to_arg3_N_A": {"P_to_B": 26.89, "Q_to_D": 26.65},
                "polar_chemistry_and_epocket_notes": [
                    "In PDB 3CDG (Petrie et al. 2008 PMID:18332182), P5-Arg:NH1 to Glu152:OE2 is 2.886 / 2.741 A across AU copies 1/2, while P5-Arg:NH1 to CD94 Gln112:NE2 (3.609 / 3.698 A) is a donor-donor proximity rather than an H-bond; CD94 Gln112:NE2 donates a direct cross-interface H-bond to P6-Thr main-chain carbonyl oxygen P6:O (3.005 / 2.618 A), and P5-Arg main-chain carbonyl oxygen P5:O accepts an H-bond from HLA-E Gln156:NE2 (2.492 / 2.310 A).",
                    "HLA-E carries Ser147 and Ser143 in the E/F-pocket wall (verified across 3CDG, 1MHE, 3BZE, and 7BH8), rather than classical Class-I Trp147.",
                    "PDB 3CII (4.41 A, Kaiser et al. 2008 PMID:18448674) contains wild-type VMAPRTLFL, whereas R5K VMAPKTLFL is an SPR-only mutant.",
                    "HLA-E alpha3 Asp227/Thr228 lies 46.9966 / 47.0073 A (minima involving Thr228 across AU copies 1/2) from the nearest CD94/NKG2A heavy atom in PDB 3CDG; however, because classical HLA-A2 D227K/T228A (Wooldridge et al. 2005 PMID:15837791; Wooldridge et al. 2010 PMID:20844204) does not exclude CD8-independent TCR agonists and murine Qa-1 D227K disrupts Qa-1-restricted CD8+ regulatory T-cell self-tolerance in vivo (Lu et al. 2008 PMID:19047627; Kim et al. 2010 PMID:20844537), D227K/T228A arms remain strictly exploratory Mode-B comparators gated on >= 80% human HLA-E-restricted CD8+ Treg suppression retention (delta >= -10.0 pp vs WT SCT), UL40-reactive CTL clearance, and parallel HLA-A*02:01 WT vs D227K/T228A SPR assay controls.",
                ],
            },
        },
    }