scripts/run_layer2_perturbation_and_regulatory_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_layer2_perturbation_and_regulatory_plane.py · SHA-256: 3220e68f97203dbc…
'unique_unmatched_8_11mer_count': 235,
'distinct_peptide_flank_contexts_8_11mer': 238,
'positional_unmatched_15mer_sum': 102,
'unique_unmatched_15mer_count': 94},
'DesignA_EmbodimentAstar_plus_existing_L3BFB_4078bp_0xP2A_mature_only_plus_optional_TYK2_P1104A': {'included_species': ['HLAE_SCT_EmbodimentAstar_20aaL1_mature_485aa',
'CD47_IgV_GPI_WT_Cys15_mature_129aa',
'SERPINB9_WT_scarfree_L3BFB_4078bp_376aa',
'PDL1_mature_272aa',
'iCasp9_cytosolic_monomer_396aa',
'TYK2_P1104A_c3310CG_1187aa'],
'positional_unmatched_8_11mer_sum': 276,
'unique_unmatched_8_11mer_count': 273,
'distinct_peptide_flank_contexts_8_11mer': 276,
'positional_unmatched_15mer_sum': 117,
'unique_unmatched_15mer_count': 109}}},
'tyk2_p1104a_32row_hlac_and_hlae_presentation_table': {'coding_hgvs': 'NM_003331.5:c.3310C>G (p.Pro1104Ala, '
'rs34536443)',
'genomic_grch38': 'chr19:10352442G>C (minus-strand '
'ENST00000525621.6 / UniProt P29597)',
'wt_nonamer': 'SPPTKFLEL',
'mutant_p2_ala_nonamer': 'SAPTKFLEL',
'flanks_5aa': {'n_flank': 'CDSSQ', 'c_flank': 'IGIAQ'},
'hlac_leader_vs_hlab_dimorphism_note': 'All 14 HLA-C alleles '
'are annotated directly '
'from IPD-IMGT/HLA '
'C_prot.fasta by HLA-C '
'leader peptide class '
'(SP-1C VMAPRTLIL, '
'SP-2C VMAPRTLLL, SP-3C '
'VMAPRALLL; Lin et al. '
'2023 PMID:37264229) '
'and mature alpha1 '
'residues 77/80 KIR2DL '
'group (C1 Ser77/Asn80 '
'vs C2 Asn77/Lys80), '
'kept strictly distinct '
"from HLA-B's -21M/-21T "
'leader dimorphism '
'(Ramsuran et al. 2018 '
'PMID:29302013; '
'GY-005).',
'rows': [{'allele': 'HLA-C*01:02',
'ipd_imgt_hla_signal_peptide_class': 'SP-1C '
'(VMAPRTLIL)',
'kir_or_receptor_licensing_group': 'C1 (Ser77/Asn80, '
'KIR2DL2/3)',
'peptide': 'SPPTKFLEL',
'n_flank_5aa': 'CDSSQ',
'c_flank_5aa': 'IGIAQ',
'variant': 'WT_TYK2_1104P',
'affinity_nM': 42.7524,
'affinity_percentile': 0.1031,
'processing_score': 0.52563,
'presentation_score': 0.914807,
'presentation_percentile': 0.1011},
{'allele': 'HLA-C*01:02',
'ipd_imgt_hla_signal_peptide_class': 'SP-1C '
'(VMAPRTLIL)',
'kir_or_receptor_licensing_group': 'C1 (Ser77/Asn80, '
'KIR2DL2/3)',
'peptide': 'SAPTKFLEL',
'n_flank_5aa': 'CDSSQ',
'c_flank_5aa': 'IGIAQ',
'variant': 'TYK2_p.Pro1104Ala_c.3310C>G',
'affinity_nM': 12.9153,
'affinity_percentile': 0.0004,
'processing_score': 0.784848,
'presentation_score': 0.99082,
'presentation_percentile': 0.0032},
{'allele': 'HLA-C*02:02',
'ipd_imgt_hla_signal_peptide_class': 'SP-2C '
'(VMAPRTLLL)',
'kir_or_receptor_licensing_group': 'C2 (Asn77/Lys80, '
'KIR2DL1)',
'peptide': 'SPPTKFLEL',
'n_flank_5aa': 'CDSSQ',
'c_flank_5aa': 'IGIAQ',
'variant': 'WT_TYK2_1104P',
'affinity_nM': 993.9797,
'affinity_percentile': 3.1146,
'processing_score': 0.52563,
'presentation_score': 0.279089,
'presentation_percentile': 1.3521},
{'allele': 'HLA-C*02:02',
'ipd_imgt_hla_signal_peptide_class': 'SP-2C '
'(VMAPRTLLL)',
'kir_or_receptor_licensing_group': 'C2 (Asn77/Lys80, '
'KIR2DL1)',
'peptide': 'SAPTKFLEL',
'n_flank_5aa': 'CDSSQ',
'c_flank_5aa': 'IGIAQ',
'variant': 'TYK2_p.Pro1104Ala_c.3310C>G',
'affinity_nM': 31.375,
'affinity_percentile': 0.0837,
'processing_score': 0.784848,
'presentation_score': 0.976891,
'presentation_percentile': 0.0152},
{'allele': 'HLA-C*03:04',
'ipd_imgt_hla_signal_peptide_class': 'SP-1C '
'(VMAPRTLIL)',
'kir_or_receptor_licensing_group': 'C1 (Ser77/Asn80, '
'KIR2DL2/3)',
'peptide': 'SPPTKFLEL',
'n_flank_5aa': 'CDSSQ',
'c_flank_5aa': 'IGIAQ',
'variant': 'WT_TYK2_1104P',
'affinity_nM': 170.2878,
'affinity_percentile': 0.9174,
'processing_score': 0.52563,
'presentation_score': 0.71386,
'presentation_percentile': 0.3953},
{'allele': 'HLA-C*03:04',
'ipd_imgt_hla_signal_peptide_class': 'SP-1C '
'(VMAPRTLIL)',
'kir_or_receptor_licensing_group': 'C1 (Ser77/Asn80, '
'KIR2DL2/3)',
'peptide': 'SAPTKFLEL',
'n_flank_5aa': 'CDSSQ',
'c_flank_5aa': 'IGIAQ',
'variant': 'TYK2_p.Pro1104Ala_c.3310C>G',
'affinity_nM': 20.7529,
'affinity_percentile': 0.0369,
'processing_score': 0.784848,
'presentation_score': 0.984942,
'presentation_percentile': 0.0077},
{'allele': 'HLA-C*04:01',
'ipd_imgt_hla_signal_peptide_class': 'SP-1C '
'(VMAPRTLIL)',
'kir_or_receptor_licensing_group': 'C2 (Asn77/Lys80, '
'KIR2DL1)',
'peptide': 'SPPTKFLEL',
'n_flank_5aa': 'CDSSQ',
'c_flank_5aa': 'IGIAQ',
'variant': 'WT_TYK2_1104P',
'affinity_nM': 341.3328,
'affinity_percentile': 0.4255,
'processing_score': 0.52563,
'presentation_score': 0.544836,
'presentation_percentile': 0.667},
{'allele': 'HLA-C*04:01',
'ipd_imgt_hla_signal_peptide_class': 'SP-1C '
'(VMAPRTLIL)',
'kir_or_receptor_licensing_group': 'C2 (Asn77/Lys80, '
'KIR2DL1)',
'peptide': 'SAPTKFLEL',
'n_flank_5aa': 'CDSSQ',
'c_flank_5aa': 'IGIAQ',
'variant': 'TYK2_p.Pro1104Ala_c.3310C>G',
'affinity_nM': 448.9257,
'affinity_percentile': 0.5158,
'processing_score': 0.784848,
'presentation_score': 0.717893,
'presentation_percentile': 0.3897},
{'allele': 'HLA-C*05:01',
'ipd_imgt_hla_signal_peptide_class': 'SP-1C '
'(VMAPRTLIL)',
'kir_or_receptor_licensing_group': 'C2 (Asn77/Lys80, '
'KIR2DL1)',
'peptide': 'SPPTKFLEL',
'n_flank_5aa': 'CDSSQ',
'c_flank_5aa': 'IGIAQ',
'variant': 'WT_TYK2_1104P',
'affinity_nM': 670.4509,
'affinity_percentile': 1.4554,