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…
"alphafold_db_v6_domain_and_pae_summaries": {'P04040': {'len_aa': 527, 'global_plddt_mean': 95.79, 'pae_matrix_mean_A': 4.67, 'domain_1_504_plddt': 98.19, 'tail_505_527_plddt': 43.2, 'domain_1_504_pae_mean': 2.83}, 'P07204': {'len_aa': 575, 'global_plddt_mean': 78.65, 'pae_matrix_mean_A': 22.08, 'stalk_481_497_plddt': 38.52}, 'P25445': {'len_aa': 335, 'global_plddt_mean': 77.88, 'pae_matrix_mean_A': 21.5, 'ecd_58_168_plddt': 94.15, 'hinge_169_223_plddt': 65.06, 'dd_224_333_plddt': 84.47, 'interdomain_ecd_vs_dd_pae_mean': 27.92}},
"pdb_1dx5_thbd_cys480_exosite_clearance_and_cys498_handle_qualification": {
"exosite_subset_vs_all_heavy_atom_disambiguation": (
"Across the 4 cognate EGF4-6:Thrombin ASU pairs in PDB 1DX5, Cys480 (disulfide-paired to Cys466 inside EGF6) clears the "
"Exosite-I side-chain subset by 6.85-7.22 A min heavy-atom distance (6.52-6.87 A across all cognate thrombin heavy atoms; "
"8.54-8.77 A from Cys480 C-alpha to nearest thrombin heavy atom, and 13.17-13.27 A true C-alpha-to-C-alpha minimum). "
"In THBD[363-497]-Cys (136 aa), the DPR-maleimide capture handle is the appended C-terminal Cys498 downstream of the "
"native 481-497 flexible O-glycosylated spacer (unresolved in 1DX5; AF-P07204-F1-v6 stalk pLDDT 38.52), requiring post-conjugation "
"LC-MS disulfide/site-occupancy and Protein C activation (>=80%) verification."
),
"asu_copy_distances": {'I_MA': {'cys480_all_heavy_min_dist_A': 6.86, 'cys480_CA_to_thrombin_heavy_min_dist_A': 8.54}, 'J_NB': {'cys480_all_heavy_min_dist_A': 6.87, 'cys480_CA_to_thrombin_heavy_min_dist_A': 8.64}, 'K_OC': {'cys480_all_heavy_min_dist_A': 7.22, 'cys480_CA_to_thrombin_heavy_min_dist_A': 8.77}, 'L_PD': {'cys480_all_heavy_min_dist_A': 6.85, 'cys480_CA_to_thrombin_heavy_min_dist_A': 8.66}},
},
"cfh_19_448_and_h1a_attachment_site_qualifications": {
"cfh_19_448_cys448": (
"CFH[19-448] (430 aa) retains all 14 annotated SCR1-7 intra-domain disulfides (Cys21-Cys442) and omits SCR8 partner Cys494, "
"leaving native Cys448 unpaired; because UniProt annotates SCR8 as 446-507 (so terminal 445-448 VKTC extends 3 aa into truncated SCR8), "
"Stage-0 conjugation gates require intact disulfide mapping and >=80% Factor I C3b->iC3b cofactor retention."
),
"h1a_cys_ggs_adipoq_fasl": (
"Appending N-terminal Cys-GGS ahead of ADIPOQ[19-107]-FasL[139-281] supplies a solvent-accessible thiol intended to preserve "
"ADIPOQ Cys36 inter-trimer disulfide hexamerization, but maleimide chemistry is not inherently orthogonal to other accessible thiols; "
"Stage-0 release requires SEC-MALS hexamer purity >=90%, unreacted thiol <=5%, LC-MS site-occupancy/disulfide verification, and preserved effector T-cell EC50/Emax."
),
},
"replayable_c3_and_two_trimer_symmetry_stitch_geometry": {
"superposition_method": (
"Rigid Kabsch alignment of 3TJE hFas-ECD 8-Cys CRD2 C-alpha atoms onto each of the 3 DcR3 chains in 4MSV hFasL3:DcR3_3 "
"(0.821 A CRD2 C-alpha RMSD; 0 backbone clashes <2.2 A and 28 unrelaxed side-chain contacts <2.2 A prior to side-chain rotamer relaxation), "
"followed by rigid translation [D_cc, 0, 0] of a second coplanar C3 trimer along the membrane plane (delta_z = 0.0 A)."
),
"single_trimer_summary": {'fasl_5l19_vs_4msv_ca_rmsd_A': 0.711, 'fas_ecd_3tje_vs_dcr3_4msv_8cys_crd2_rmsd_A': 0.821, 'raw_unshifted_superposition_min_dist_A': 0.5, 'raw_unshifted_heavy_clashes_lt_2p2A_per_interface': 28, 'raw_unshifted_backbone_clashes_lt_2p2A_per_interface': 0, 'rigid_body_c3_radial_relief_shift_A': 0.0, 'post_relief_min_heavy_dist_A': 0.5, 'post_relief_heavy_clashes_lt_2p2A': 28, 'post_relief_backbone_clashes_lt_2p2A': 0, 'post_relief_interface_atom_pairs_le_4p5A_per_protomer': 427, 'intra_trimer_fasl_n143_spacing_A': 19.62, 'adjacent_protomer_fasl_c281_to_n143_dist_A': 11.15, 'scfasl3_10aa_g4s2_contour_length_38A_bridges_c281_to_n143': True, 'intra_trimer_fas_c147_membrane_triangle_side_A': 42.92},
"two_trimer_spacing_sweep_A": [{'c3_axis_center_to_center_A': 64.0, 'min_inter_trimer_heavy_atom_dist_A': 1.78, 'inter_trimer_heavy_clashes_lt_2p2A': 4, 'inter_trimer_backbone_clashes_lt_2p2A': 0, 'nearest_inter_trimer_fas_c147_membrane_dist_A': 29.77, 'median_inter_trimer_fas_c147_membrane_dist_A': 67.3, 'max_inter_trimer_fas_c147_membrane_dist_A': 108.88, 'coplanar_membrane_delta_z_A': 0.0}, {'c3_axis_center_to_center_A': 66.0, 'min_inter_trimer_heavy_atom_dist_A': 3.44, 'inter_trimer_heavy_clashes_lt_2p2A': 0, 'inter_trimer_backbone_clashes_lt_2p2A': 0, 'nearest_inter_trimer_fas_c147_membrane_dist_A': 31.13, 'median_inter_trimer_fas_c147_membrane_dist_A': 69.16, 'max_inter_trimer_fas_c147_membrane_dist_A': 110.82, 'coplanar_membrane_delta_z_A': 0.0}, {'c3_axis_center_to_center_A': 68.0, 'min_inter_trimer_heavy_atom_dist_A': 5.31, 'inter_trimer_heavy_clashes_lt_2p2A': 0, 'inter_trimer_backbone_clashes_lt_2p2A': 0, 'nearest_inter_trimer_fas_c147_membrane_dist_A': 32.56, 'median_inter_trimer_fas_c147_membrane_dist_A': 71.03, 'max_inter_trimer_fas_c147_membrane_dist_A': 112.76, 'coplanar_membrane_delta_z_A': 0.0}, {'c3_axis_center_to_center_A': 74.0, 'min_inter_trimer_heavy_atom_dist_A': 11.02, 'inter_trimer_heavy_clashes_lt_2p2A': 0, 'inter_trimer_backbone_clashes_lt_2p2A': 0, 'nearest_inter_trimer_fas_c147_membrane_dist_A': 37.16, 'median_inter_trimer_fas_c147_membrane_dist_A': 76.68, 'max_inter_trimer_fas_c147_membrane_dist_A': 118.59, 'coplanar_membrane_delta_z_A': 0.0}],
"fth1_2fha_disqualification": {'fth1_bare_outer_diameter_A': 129.79, 'fth1_plus_8x_fasl3_estimated_outer_diameter_A': 253.8, 'fth1_n_term_thr5_radius_from_center_A': 63.2, 'fth1_c_term_gly176_radius_from_center_A': 39.54, 'c_term_buried_inside_4fold_cavity_inward_of_surface': True, 'nearest_n_term_thr5_c3_pore_spacing_A': 43.4, 'mismatch_vs_fasl_n143_trimer_base_spacing_A': 23.77, 'total_native_free_cysteines_per_24mer': 72},
},
}
def _build_hurdle3_receptor_and_compartment_reconciliation_iip_0018() -> Dict[str, Any]:
"""Return deterministic Hurdle-3 crystal contact, 4MSV geometry, and parameter-conditional compartment ledger (IIP-0018; DEC-096)."""
def _solve_illustrative_beta_il1_complexes(
r1_beta: float,
decoy_cis_beta: float,
il1_local_nM: float = 0.50,
racp_beta: float = 2000.0,
kd1_nM: float = 1.0,
kd_tern_molecules: float = 400.0,
) -> float:
occ = il1_local_nM / (kd1_nM + il1_local_nM)
b1 = r1_beta * occ
bd = decoy_cis_beta * occ
b_tot = b1 + bd
if b_tot <= 0.0:
return 0.0
s = b_tot + racp_beta + kd_tern_molecules
c_tot = 0.5 * (s - math.sqrt(max(0.0, s * s - 4.0 * b_tot * racp_beta)))
return round(c_tot * (b1 / b_tot), 2)
wt_c = _solve_illustrative_beta_il1_complexes(1500.0, 0.0, 0.50)
trans_16 = _solve_illustrative_beta_il1_complexes(1500.0, 0.0, 0.42)
trans_50 = _solve_illustrative_beta_il1_complexes(1500.0, 0.0, 0.25)
cis_50k = _solve_illustrative_beta_il1_complexes(1500.0, 50000.0, 0.50)
mir_85 = _solve_illustrative_beta_il1_complexes(225.0, 0.0, 0.50)
if (wt_c, trans_16, trans_50, cis_50k, mir_85) != (400.0, 356.81, 244.33, 56.76, 62.17):
raise ValueError("Illustrative IL-1R1/IL-1RAcP mass-action equilibrium mismatch")
return {
"proposal_id": "IIP-0018",
"decision_id": "DEC-096",
"evidence_class": "crystallographic_interface_and_uncalibrated_compartment_mass_action_illustration",
"primary_citations": [
"PMID:22426547",
"PMID:20802483",
"PMID:12530978",
"PMID:27806260",
"PMID:25087510",
"PMID:11325591",
"PMID:26670609",
],
"il1_signaling_vs_decoy_crystal_contacts_4p5A": {
"method_and_limitation": (
"Non-hydrogen cross-chain ATOM pairs within <= 4.5 A in deposited RCSB coordinates. "
"Contact counts depend on crystallographic copy and cutoff and do NOT measure equilibrium affinity or physiological occupancy."
),
"pdb_4dep_il1beta_il1r1_il1racp_pmid_22426547": {
"copy_1_chains_A_B_C": {
"IL1beta_to_IL1R1": 504,
"binary_complex_to_IL1RAcP": 250,
},
"copy_2_chains_D_E_F": {
"IL1beta_to_IL1R1": 618,
"binary_complex_to_IL1RAcP": 352,
},
},
"pdb_3o4o_il1beta_il1r2_il1racp_pmid_20802483": {
"chains_A_C_B": {
"IL1beta_to_IL1R2": 455,
"binary_complex_to_IL1RAcP": 237,
},
},
},
"fasl_dcr3_c3_assembly_geometry_pdb_4msv": {
"pdb_id": "4MSV",
"citation": "Liu et al. 2016 Structure PMID:27806260 (human FasL : DcR3 complex; distinct from PDB 4J6G LIGHT : DcR3, Liu et al. 2014 PMID:25087510)",
"c3_symmetry_ca_triangle_edges_angstrom": {
"dcr3_chainB_cys193_cterm_edge_A": 61.5796,
"fasl_chainA_leu143_resolved_nterm_stalk_edge_A": 19.6245,
"fasl_chainA_leu281_distal_cterm_tip_edge_A": 8.09,
},
"structural_scope_note": (
"Resolved Chain-A N-terminus in 4MSV is Leu143 (not Pro143) and Chain-B C-terminus is Cys193; "
"these represent distinct ectodomain crystal-construct endpoints rather than full plasma-membrane or SA-FasL microgel tether geometry. "
"Used strictly as a qualitative caution against constitutive soluble DcR3 neutralizing Rule S8b SA-FasL microgels on Design X."
),
},
"granzyme_b_and_serpinb9_c341s_scope": {
"pdb_1iau_scope": "PDB 1IAU (Rotonda et al. 2001 PMID:11325591) contains human Granzyme B bound to tetrapeptide aldehyde Ac-IEPD-CHO with NO SERPINB9 protein chain.",
"mangan_2016_pmid_26670609_scope": (
"Mangan et al. 2016 tested single substitutions in synthetic RCL peptides and the C341S/C342S double mutant in full-length protein/cellular "
"oxidative-resistance assays; single C341S(TCA) in ARM6 remains strictly exploratory pending direct H2O2 + Granzyme B kinetic and HLA-C/DQ2/DQ8 screening."
),
},
"uncalibrated_2d_compartment_mass_action_illustration": {
"exact_equations": (
"occ = [IL1] / (Kd_3D + [IL1]); B1 = R1_beta * occ; Bd = R2_cis_beta * occ; B_tot = B1 + Bd; "
"C_tot = 0.5 * ((B_tot + RAcP_beta + Kd_2D) - sqrt((B_tot + RAcP_beta + Kd_2D)^2 - 4 * B_tot * RAcP_beta)); "
"Active_beta = C_tot * (B1 / B_tot)."
),
"assumed_illustrative_parameters": {
"R1_beta_molecules_per_cell": 1500.0,
"RAcP_beta_molecules_per_cell": 2000.0,
"Kd_3D_binary_nM": 1.0,
"Kd_2D_ternary_molecules_per_cell": 400.0,
"baseline_local_IL1beta_nM": 0.50,
},
"computed_active_signaling_complexes_per_beta_cell": {
"wt_beta_cell_0p50nM": wt_c,
"trans_iec_16pct_interstitial_depletion_0p42nM": trans_16,
"trans_iec_50pct_interstitial_depletion_0p25nM": trans_50,
"hypothetical_same_membrane_cis_decoy_50000_per_beta_cell": cis_50k,
"beta_cell_cis_mir_il1r1_85pct_knockdown_225_receptors": mir_85,
},
"strict_interpretation_boundary": (
"Uncalibrated illustrative toy calculation without spatial transport, receptor shedding, or parameter uncertainty. "
"Justifies retiring ONLY the physically impossible same-membrane cis-IL1RAcP competition mechanism for trans endothelial IL1R2; "
"it does NOT retire extracellular interstitial IL-1beta capture by iECs or cooperative soluble sIL1R2 + sIL1RAcP ligand neutralization "
"(Smith et al. 2003 PMID:12530978), nor does comparing assumed 16%/50% ligand depletion against 85% receptor knockdown prove equal-capacity superiority."
),
},
}
def _build_pvr_and_hlag1_structural_audit_iip_0022() -> Dict[str, Any]:
"""
CC0-1.0 RCSB PDB structural coordinate & engineered-sequence provenance for human PVR (CD155)
complexes (3UDW PVR:TIGIT, 6O3O PVR:CD226, 6ARQ PVR:CD96) and HLA-G1:LILRB1 (6AEE) (IIP-0022; DEC-101).
Preserves data/structures/ .cif file inventory while recording authenticated coordinate hashes,
chain-explicit footprint overlap, valency-separated binding hierarchies, and engineered-crystal mutations.
"""
return {
"contribution_id": "IIP-0022",
"decision_id": "DEC-101",
"coordinate_license": "CC0-1.0 (wwPDB archive coordinate policy; associated primary articles carry separate journal copyrights)",
"primary_citations": [
"PMID:37675979",
"PMID:35947095",
"PMID:41202120",
"PMID:36170817",
],
"authenticated_rcsb_mmcif_records": {
"3UDW": {
"complex": "Human PVR (CD155) D1 : TIGIT IgV heterotetramer",
"method": "X-RAY DIFFRACTION",
"resolution_angstrom": 2.90,
"rcsb_mmcif_sha256": "60e9a70f6a7e169967a4738d025f907735d62f2656b92d73b49d523d9fc9b373",
"author_chain_pairs_pvr_to_receptor": ["C:A", "D:B"],
"pvr_ala67_min_heavy_atom_distance_angstrom": {"C:A": 6.4485, "D:B": 6.7609},
"pvr_ala67_contacts_le_4p5A": 0,
},
"6O3O": {
"complex": "Human PVR (CD155) D1 : CD226 (DNAM-1) D1",
"method": "X-RAY DIFFRACTION",
"resolution_angstrom": 2.80,
"rcsb_mmcif_sha256": "08f9f8c58f5ebc44d068ee6602efe48464946fa0f3336f0d925e03ddc87a96ea",
"author_chain_pairs_pvr_to_receptor": ["C:A", "D:B"],
"pvr_ala67_min_heavy_atom_distance_angstrom": {"C:A": 6.4140, "D:B": 6.4895},
"pvr_ala67_contacts_le_4p5A": 0,
},
"6ARQ": {
"complex": "Human PVR (CD155) D1 : CD96 D1 (engineered CD96 C110S crystal construct)",
"method": "X-RAY DIFFRACTION",
"resolution_angstrom": 2.88,
"rcsb_mmcif_sha256": "6fe4a00f7f86b1938fed3b95d16d2ce3a82f52f7781616808f2825b27991e363",
"author_chain_pairs_pvr_to_receptor": ["D:A"],
"pvr_ala67_min_heavy_atom_distance_angstrom": {"D:A": 7.0569},
"pvr_ala67_contacts_le_4p5A": 0,
"engineered_crystal_sequence_differences": "CD96 carries engineered C110S substitution in crystal construct.",
},
"6AEE": {
"complex": "Human HLA-G1 : B2M : nonamer peptide : LILRB1 (ILT2) D1D2",
"method": "X-RAY DIFFRACTION",
"resolution_angstrom": 3.30,
"rcsb_mmcif_sha256": "d8fe444a303773512777f10f35c92a55ade2dd3c1902e58edebc67d7833928d1",
"engineered_crystal_sequence_differences": (
"Mature HLA-G1 chain carries engineered C42S/L110I/Q115R substitutions as a non-covalent "
"three-chain heterotrimer without single-chain-trimer (SCT) flexible linkers; reference geometry "
"does not qualify an unregistered covalent HLA-G1 SCT product."
),
},
},
"chain_explicit_4p5A_footprint_overlap_and_allosteric_qualification": {
"contact_cutoff_angstrom": 4.5,
"first_copy_3UDW_CA_vs_6O3O_CA_shared_over_cd226_contacts": "19/23 (82.61%)",
"second_copy_3UDW_DB_vs_6O3O_DB_shared_over_cd226_contacts": "19/19 (100.0%)",
"allosteric_caveat": (
"WT Ala67 sits 6.41-7.06 A from bound receptor heavy atoms in static crystals, which rules out a direct "
"<=4.5 A WT side-chain contact but does NOT exclude conformational or dynamic C/C'-loop effects in Ala67Thr."
),
},
"valency_separated_binding_and_mhc_context_reconciliation": {
"monovalent_spr_diong_2023_pmid37675979_kd_nM": {"CD226": 530.0, "TIGIT": 1150.0, "CD96": 3700.0},
"bivalent_cd155_fc_bli_matsuo_2022_pmid35947095": {
"analyte_orientation": "Bivalent CD155-Fc in solution over immobilized His-tagged TIGIT or CD226 (not receptor-Fc analyte)",
"cd226_apparent_kd_wt_vs_a67t_nM": [515.0, 316.0],
"tigit_apparent_kd_wt_vs_a67t_nM": [1900.0, 393.0],
"cd226_over_tigit_kd_ratio_wt_to_a67t": [0.2711, 0.8041],
},
"cellular_staining_and_nk_context_brown_2025_vs_chimienti_2022": {
"brown_2025_pmid41202120_mhc_intact_hla_a2_sc_beta": (
"Reduced primary human NK lysis to 0.34/0.41/0.41 of parental at E:T 1/5/10 with TIGIT-blockade reversal "
"(fluorescence binding-curve AUC fold ratio 1.37 / 1.29 = 1.062x)."
),
"chimienti_2022_pmid36170817_b2m_null_ipsc_and_ibeta": (
"In B2M-/- targets lacking classical MHC-I KIR ligands, anti-CD155 blockade reduced CD16+ NK lysis from "
"82.1% +/- 7.1% to 30.2% +/- 5.0% on iPSCs, and CD155 KO / CD155+B7-H3 DKO yielded 50.9% +/- 6.4% / "
"34.6% +/- 7.9% lysis on B2M-/- iBeta cells—motivating direct matched-cell testing for possible sign inversion."
),
},
"population_and_packaging_metrics": {
"rs1058402_grch38": "chr19:44647342G>A",
"gnomad_v4_thr67_af": {"NFE": 0.045234, "Global": 0.059009},
"hardy_weinberg_ala67_homozygote_pct": {"NFE": 91.16, "Global": 88.55},
"non_canonical_p15151_8_to_11mer_windows": 38,