OpenIslet

scripts/run_layer2_perturbation_and_regulatory_plane.py

Layer 2: Single-Cell Perturbation & Regulatory Sequence Plane (v0.8.0)

script Release v0.8.0 gen-eb955f8266035aba 1.13 MB · 71 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_layer2_perturbation_and_regulatory_plane.py · SHA-256: 3220e68f97203dbc…

                                                                                                    'distinct_flank_contexts_8_11mer': 162,
                                                                                                    'positional_unmatched_15mer': 72,
                                                                                                    'unique_unmatched_15mer': 69},
                                                                 'HLAE_SCT_EmbodimentAstar_precursor_505aa': {'length_aa': 505,
                                                                                                              'sha256': '56dca2c1a5fc00252920dec9d6d9391976be3993ae4d838ce3885df1a1e71281',
                                                                                                              'positional_unmatched_8_11mer': 163,
                                                                                                              'unique_unmatched_8_11mer': 160,
                                                                                                              'distinct_flank_contexts_8_11mer': 163,
                                                                                                              'positional_unmatched_15mer': 77,
                                                                                                              'unique_unmatched_15mer': 69},
                                                                 'CD47_Arm1A_postP2A_Pro_precursor_176aa': {'length_aa': 176,
                                                                                                            'sha256': 'b9315764d80f1f4b392ad60bf05ab18428352eec56ad60f15643889377a43fbb',
                                                                                                            'positional_unmatched_8_11mer': 30,
                                                                                                            'unique_unmatched_8_11mer': 30,
                                                                                                            'distinct_flank_contexts_8_11mer': 30,
                                                                                                            'positional_unmatched_15mer': 13,
                                                                                                            'unique_unmatched_15mer': 13},
                                                                 'CD47_Arm1B_nativeSP_precursor_175aa': {'length_aa': 175,
                                                                                                         'sha256': '14c634833d8775819193419862c3950d6f54395c0e696d75748a0d06c3f767b3',
                                                                                                         'positional_unmatched_8_11mer': 26,
                                                                                                         'unique_unmatched_8_11mer': 26,
                                                                                                         'distinct_flank_contexts_8_11mer': 26,
                                                                                                         'positional_unmatched_15mer': 12,
                                                                                                         'unique_unmatched_15mer': 12},
                                                                 'PDL1_postP2A_Pro_precursor_291aa': {'length_aa': 291,
                                                                                                      'sha256': 'a682b44b57ac479f67af2e43de88acb5d39de3cf8c32b42996cac2c8b337fb9a',
                                                                                                      'positional_unmatched_8_11mer': 4,
                                                                                                      'unique_unmatched_8_11mer': 4,
                                                                                                      'distinct_flank_contexts_8_11mer': 4,
                                                                                                      'positional_unmatched_15mer': 1,
                                                                                                      'unique_unmatched_15mer': 1},
                                                                 'PDL1_nativeSP_precursor_290aa': {'length_aa': 290,
                                                                                                   'sha256': 'b1b17c7fca3cbab15bc66b90bd4c07f73617cb5a03db105b0a38084fe7bca48b',
                                                                                                   'positional_unmatched_8_11mer': 0,
                                                                                                   'unique_unmatched_8_11mer': 0,
                                                                                                   'distinct_flank_contexts_8_11mer': 0,
                                                                                                   'positional_unmatched_15mer': 0,
                                                                                                   'unique_unmatched_15mer': 0},
                                                                 'Locus1_Arm1A_uncleaved_HLAE_P2A_CD47_697aa': {'length_aa': 697,
                                                                                                                'sha256': '05a098488326e504fd92b0575ef1b4dc3e4a4ef346025f7273000f8d42227cac',
                                                                                                                'positional_unmatched_8_11mer': 310,
                                                                                                                'unique_unmatched_8_11mer': 308,
                                                                                                                'distinct_flank_contexts_8_11mer': 310,
                                                                                                                'positional_unmatched_15mer': 120,
                                                                                                                'unique_unmatched_15mer': 117},
                                                                 'Locus3_canonical_uncleaved_SERPINB9_P2A_PDL1_688aa': {'length_aa': 688,
                                                                                                                        'sha256': 'd4b76ab36859b2f884895ff983bf96fb861de1eebd6ecb4cb574b19c9fbbe34b',
                                                                                                                        'positional_unmatched_8_11mer': 122,
                                                                                                                        'unique_unmatched_8_11mer': 122,
                                                                                                                        'distinct_flank_contexts_8_11mer': 122,
                                                                                                                        'positional_unmatched_15mer': 36,
                                                                                                                        'unique_unmatched_15mer': 36},
                                                                 'Locus1_unhardened_B2M_Exon2_cryptic_splice_537aa': {'length_aa': 537,
                                                                                                                      'sha256': 'a9906c035373b3445147f1d21b20370a94938f60e940342c58f699e90903c3ae',
                                                                                                                      'positional_unmatched_8_11mer': 291,
                                                                                                                      'unique_unmatched_8_11mer': 288,
                                                                                                                      'distinct_flank_contexts_8_11mer': 291,
                                                                                                                      'positional_unmatched_15mer': 109,
                                                                                                                      'unique_unmatched_15mer': 101},
                                                                 'Locus1_unhardened_Arm1B_B2M_Exon2_cryptic_splice_532aa': {'length_aa': 532,
                                                                                                                            'sha256': 'aef6df26d0428bf7ac6a96b0c45cf87e370205b8ca6c54a54debfb75c0ebeb50',
                                                                                                                            'positional_unmatched_8_11mer': 290,
                                                                                                                            'unique_unmatched_8_11mer': 288,
                                                                                                                            'distinct_flank_contexts_8_11mer': 290,
                                                                                                                            'positional_unmatched_15mer': 104,
                                                                                                                            'unique_unmatched_15mer': 101}}},
 'causally_separated_architecture_census': {'design_identity_boundary_note': 'Preserves strict separation across '
                                                                             'Design A (B2M-/- pure MHC-I/II-null), '
                                                                             'scored 6-locus Scenario B '
                                                                             '(unmaterialized TYK2-/- KO '
                                                                             'ISLET1_B1_6LOCUS_TYK2_KO_INS), Design '
                                                                             'B-WT (WT TYK2 1104P retained-HLA-C '
                                                                             'counterfactual ISLET1_B2_5LOCUS_BASE), '
                                                                             'Design B2 (K=5, B=1 TYK2 p.Pro1104Ala '
                                                                             'prime-edited counterfactual '
                                                                             'ISLET1_B2_5LOCUS_TYK2_PE), and Track-2 '
                                                                             "B'-SCT (covalent self-peptide HLA-C SCT "
                                                                             'at CIITA Exon 5 with B2M-/-). '
                                                                             'Mature-only and precursor+readthrough '
                                                                             'inventories are reported side-by-side.',
                                            'architectures': {'DesignA_Arm1A_2xP2A_mature_only': {'included_species': ['HLAE_SCT_Arm1A_mature_with_P2A_501aa',
                                                                                                                       'CD47_IgV_GPI_WT_Cys15_mature_129aa',
                                                                                                                       'SERPINB9_with_P2A_Locus3_canonical_397aa',
                                                                                                                       'PDL1_mature_272aa',
                                                                                                                       'iCasp9_cytosolic_monomer_396aa'],
                                                                                                  'positional_unmatched_8_11mer_sum': 405,
                                                                                                  'unique_unmatched_8_11mer_count': 353,
                                                                                                  'distinct_peptide_flank_contexts_8_11mer': 375,
                                                                                                  'positional_unmatched_15mer_sum': 139,
                                                                                                  'unique_unmatched_15mer_count': 129},
                                                              'DesignA_Arm1A_2xP2A_with_precursors_and_readthrough': {'included_species': ['HLAE_SCT_Arm1A_precursor_521aa',
                                                                                                                                           'CD47_Arm1A_postP2A_Pro_precursor_176aa',
                                                                                                                                           'Locus1_Arm1A_uncleaved_HLAE_P2A_CD47_697aa',
                                                                                                                                           'SERPINB9_with_P2A_Locus3_canonical_397aa',
                                                                                                                                           'PDL1_postP2A_Pro_precursor_291aa',
                                                                                                                                           'Locus3_canonical_uncleaved_SERPINB9_P2A_PDL1_688aa',
                                                                                                                                           'iCasp9_cytosolic_monomer_396aa'],
                                                                                                                      'positional_unmatched_8_11mer_sum': 879,
                                                                                                                      'unique_unmatched_8_11mer_count': 455,
                                                                                                                      'distinct_peptide_flank_contexts_8_11mer': 525,
                                                                                                                      'positional_unmatched_15mer_sum': 316,
                                                                                                                      'unique_unmatched_15mer_count': 176},
                                                              'DesignA_EmbodimentAstar_1xP2A_with_precursors_and_readthrough': {'included_species': ['HLAE_SCT_EmbodimentAstar_precursor_505aa',
                                                                                                                                                     'CD47_Arm1B_nativeSP_precursor_175aa',
                                                                                                                                                     'SERPINB9_with_P2A_Locus3_canonical_397aa',
                                                                                                                                                     'PDL1_postP2A_Pro_precursor_291aa',
                                                                                                                                                     'Locus3_canonical_uncleaved_SERPINB9_P2A_PDL1_688aa',
                                                                                                                                                     'iCasp9_cytosolic_monomer_396aa'],
                                                                                                                                'positional_unmatched_8_11mer_sum': 482,
                                                                                                                                'unique_unmatched_8_11mer_count': 391,
                                                                                                                                'distinct_peptide_flank_contexts_8_11mer': 418,
                                                                                                                                'positional_unmatched_15mer_sum': 179,
                                                                                                                                'unique_unmatched_15mer_count': 149},
                                                              'DesignA_EmbodimentAstar_plus_existing_L3BFB_4078bp_0xP2A_with_precursors': {'included_species': ['HLAE_SCT_EmbodimentAstar_precursor_505aa',
                                                                                                                                                                'CD47_Arm1B_nativeSP_precursor_175aa',
                                                                                                                                                                'SERPINB9_WT_scarfree_L3BFB_4078bp_376aa',
                                                                                                                                                                'PDL1_nativeSP_precursor_290aa',
                                                                                                                                                                'iCasp9_cytosolic_monomer_396aa'],
                                                                                                                                           'positional_unmatched_8_11mer_sum': 272,
                                                                                                                                           'unique_unmatched_8_11mer_count': 269,