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…
+ arm1c_trapped_3459[600:]
),
"post_splice_upstream_atg_count_between_tss509_and_hlae_atg610": 0,
"u1_snrna_consensus_600t_to_g_splice_donor_rescue_sonnet55_r2": {
"u1_snrna_base_pairing_warning_for_599_600_at_to_cc": (
"Mutating B2M_HA_L nt 599..600 AT->CC sits at the -2 and -1 exonic positions immediately upstream of the 133-nt chimeric intron "
"5' splice donor |GTAAGT (nt 601..606), converting the exonic-intronic junction from TAT|GTAAGT (7/9 match to the mammalian U1 snRNA "
"5' splice-site consensus MAG|GTRAGT) to TCC|GTAAGT (6/9 match, disrupting both -2 A and -1 G exonic U1 snRNA base-pairing; S55R2-D2-01)."
),
"preferred_single_nt_600t_to_g_rescue_mutations": (
"B2M_HA_L nt 540 T->G (native ATG->AGG, chr15:44711548T>G) + single-base nt 600 T->G (599..600 AT->AG, chr15:44711608T>G) "
"+ 4-nt S3 PAM+seed shield at nt 583, 589, 592, 595: eliminates the de novo 599..600+734 splice-junction ATG while upgrading "
"the 5' splice donor junction to canonical TAG|GTAAGT (8/9 match to MAG|GTRAGT, restoring the optimal -1 G consensus base) "
"with 0 post-splice upstream ATGs between TSS 509 and HLA-E ATG 610."
),
"u1_consensus_600t_to_g_3459bp_donor_sha256": sha256_str(
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:599] + "G")
+ arm1c_trapped_3459[600:]
),
"u1_consensus_600t_to_g_3459bp_donor_sequence": (
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:599] + "G")
+ arm1c_trapped_3459[600:]
),
"u1_consensus_600t_to_g_post_splice_upstream_atg_count_between_tss509_and_hlae_atg610": 0,
"materialized_post_splice_transcripts_and_retired_642nt_note_kimi31_r3": {
"arm1c_599_600_cc_spliced_5utr_101nt_sequence": (
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:598] + "CC")[508:600]
+ arm1c_trapped_3459[733:742]
),
"arm1c_599_600_cc_spliced_5utr_101nt_sha256": sha256_str(
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:598] + "CC")[508:600]
+ arm1c_trapped_3459[733:742]
),
"arm1c_599_600_cc_spliced_mrna_2218nt_sequence": (
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:598] + "CC")[508:600]
+ arm1c_trapped_3459[733:2859]
),
"arm1c_599_600_cc_spliced_mrna_2218nt_sha256": sha256_str(
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:598] + "CC")[508:600]
+ arm1c_trapped_3459[733:2859]
),
"arm1c_u1_600g_spliced_5utr_101nt_sequence": (
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:599] + "G")[508:600]
+ arm1c_trapped_3459[733:742]
),
"arm1c_u1_600g_spliced_5utr_101nt_sha256": sha256_str(
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:599] + "G")[508:600]
+ arm1c_trapped_3459[733:742]
),
"arm1c_u1_600g_spliced_mrna_2218nt_sequence": (
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:599] + "G")[508:600]
+ arm1c_trapped_3459[733:2859]
),
"arm1c_u1_600g_spliced_mrna_2218nt_sha256": sha256_str(
(b2m_ha_l_600[:539] + "G" + b2m_ha_l_600[540:582] + "C" + b2m_ha_l_600[583:588] + "A" + b2m_ha_l_600[589:591] + "C" + b2m_ha_l_600[592:594] + "A" + b2m_ha_l_600[595:599] + "G")[508:600]
+ arm1c_trapped_3459[733:2859]
),
"retired_historical_642nt_digest_note": (
"Materializes the exact post-splice 5'-UTR leader (101 nt: B2M exon-1 509..600 [92 nt] + Kozak 734..742 [9 nt]) "
"and full spliced transcript body (2,218 nt from TSS 509 through bGH_polyA 2859, excising the 133-nt chimeric intron 601..733) "
"for both Arm 1C-599_600_CC and Arm 1C-U1-600G, and retires the unmaterialized historical 642-nt narrative digest prefix "
"(efea4d2ddfaab3ca) in favor of the sequence-materialized 3,459-bp donor digests (ba78da72229ee116... and bb3e41591cf3e6b8...) "
"and post-splice transcript digests above (AUDIT-REF)."
),
},
"stage0_3arm_9clone_splicing_and_mfi_gate_sonnet55_r2": {
"n_arms": 3,
"n_arms_promoter_trapped_test_only_reference_exclusive": 3,
"n_arms_including_constitutive_3300bp_reference_muse_r2": 4,
"n_clones_per_arm": 3,
"n_clones_total": 9,
"n_clones_promoter_trapped_test_only_reference_exclusive": 9,
"n_clones_total_including_constitutive_3300bp_reference_muse_r2": 12,
"arm_count_scope_note": (
"n_arms=3 and n_clones_total=9 count the 3 promoter-trapped 3,459-bp test arms (reference-exclusive), "
"whereas arms (len=4) and n_arms_including_constitutive_3300bp_reference_muse_r2=4 / 12 include the 4th "
"constitutive 3,300-bp EEF1A1_core reference arm (AUDIT-REF)."
),
"arms": [
"Arm 1C-unmodified (3,459-bp promoter-trapped TAT|GTAAGT, 2 post-splice uORFs, unmodified GRCh38 B2M_HA_L; ebbde623...)",
"Arm 1C-599_600_CC (3,459-bp promoter-trapped TCC|GTAAGT, 6/9 U1 match, 0 post-splice uORFs, S3+uORF B2M_HA_L; ba78da72...)",
"Arm 1C-600_G (3,459-bp promoter-trapped TAG|GTAAGT, 8/9 U1 match, 0 post-splice uORFs, S3+uORF B2M_HA_L; bb3e4159...)",
"Arm 1C-constitutive-3300bp (3,300-bp constitutive EEF1A1_core + 133-bp Chimeric_Intron reference arm: paired as S3+uORF+5'TOP b1e17584... against S3+uORF-shielded Arm 1C-599_600_CC / Arm 1C-600_G, and as unshielded native-parts 259d1654... against unmodified Arm 1C-unmodified to preserve single-variable attribution; AUDIT-REF & L2A-01 [DEC-077])",
],
"splicing_efficiency_se_s_over_s_plus_u_minimum": 0.85,
"splicing_efficiency_se_high_benchmark_for_lt_5pct_intron_retention": 0.95,
"equivalent_spliced_to_unspliced_ratio_s_over_u_at_se_0p85": 5.67,
"equivalent_spliced_to_unspliced_ratio_s_over_u_at_se_0p95": 19.0,
"quantitative_promotion_gate": (
"Intron-spanning RT-PCR / ddPCR splicing efficiency SE = S/(S+U) >= 0.85 (<= 15% unspliced intron retention, equivalent to S/U >= 5.67; "
"with SE >= 0.95 [<= 5% intron retention, S/U >= 19.0] as the high-efficiency benchmark; AUDIT-REF), absolute spliced transcript copy number "
"(ddPCR copies/ng total RNA) non-inferior to the background-matched constitutive 3,300-bp Arm 1C reference (S3+uORF+5'TOP b1e17584... for Arm 1C-599_600_CC / Arm 1C-600_G; native-parts 259d1654... for Arm 1C-unmodified; L2A-01 [DEC-077]), AND surface HLA-E MFI (clone 3D12) >= 1.5x "
"Arm 1C-unmodified AND >= 0.90x constitutive 3,300-bp Arm 1C reference; if promoter-trapped 3,459-bp Arm 1C fails under basal low-IFN-gamma conditions, promote constitutive 3,300-bp Arm 1C (S55R2-D2-01, D2-03, AUDIT-REF, AUDIT-REF & L2A-01 [DEC-077])."
),
},
},
},
"locus1_arm1c_constitutive_eef1a1_intron_part_sum_donor_length_bp": len(arm1c_constitutive_3300),
"locus1_arm1c_constitutive_eef1a1_intron_donor_sha256": sha256_str(arm1c_constitutive_3300),
"locus1_arm1c_constitutive_eef1a1_intron_donor_sequence": arm1c_constitutive_3300,
"locus1_arm1c_constitutive_native_parts_3300bp_donor_sha256": sha256_str(
b2m_ha_l_600 + eef1a1_core_230 + chimeric_intron_133 + kozak_9 + hlae_sct_dna_stop + bgh_polya_225 + b2m_ha_r_600
),
"locus1_arm1c_constitutive_native_parts_3300bp_donor_sequence": (
b2m_ha_l_600 + eef1a1_core_230 + chimeric_intron_133 + kozak_9 + hlae_sct_dna_stop + bgh_polya_225 + b2m_ha_r_600
),
"max_disjoint_inverted_repeat_stem_arm1c_3300bp_bp": _max_disjoint_inverted_repeat_stem_bp(arm1c_constitutive_3300),
"locus1_arm1c_part_sum_reconciliation_note": (
"Canonical constitutive Arm 1C part sum is 600 (B2M_HA_L) + 230 (EEF1A1_core) + 133 (Chimeric_Intron) "
"+ 9 (Kozak) + 1503 (HLA-E SCT stop) + 225 (bGHpA) + 600 (B2M_HA_R) = 3,300 bp donor (3,590 bp packaged, +1,110 bp headroom): "
"both the S3+uORF+5'TOP-edited 3,300-bp constitutive donor (locus1_arm1c_constitutive_eef1a1_intron_donor_sha256 = b1e17584e6217043e2e7cfc931d8f91db60934806b611efc5bd556ddb103da8e, carrying the 5-SNV S3+uORF B2M_HA_L edits [540 T>G, 583 T>C, 589 C>A, 592 G>C, 595 G>A] + 5-nt EEF1A1_core 5'TOP edit [199..203 CTTTT->CAGAGA]) "
"and the unshielded native-parts 3,300-bp constitutive donor (locus1_arm1c_constitutive_native_parts_3300bp_donor_sha256 = 259d1654ea35220b2de8ae9dc68bcda8e61436877a2850e828575a9374e3efa2) are materialized above so S3+uORF-shielded trapped Arm 1C-599_600_CC (ba78da72...) / Arm 1C-600_G (bb3e4159...) are compared against b1e17584... while unmodified native-HA trapped Arm 1C (ebbde623...) is compared against 259d1654... without uORF/S3/5'TOP confounding; "
"promoter-trapped Arm 1C with 133-bp Chimeric_Intron + 389-bp minimal WPRE3 (wpre_mut6_589[:389]) is 600 + 133 + 9 + 1503 + 389 + 225 + 600 = 3,459 bp donor "
"(3,749 bp packaged; AUDIT-REF, AUDIT-REF & L2A-01 [DEC-077])."
),
"locus4_cd47_icasp9_donor_length_bp": len(dxs_locus4_4048),
"locus4_cd47_icasp9_packaged_aav6_length_bp": len(dxs_locus4_4048) + 290,
"locus4_cd47_icasp9_aav6_headroom_bp": 4700 - (len(dxs_locus4_4048) + 290),
"locus4_icasp9_p2a_cd47_donor_sha256": sha256_str(dxs_locus4_4048),
"locus4_icasp9_p2a_cd47_donor_sequence": dxs_locus4_4048,
"locus4_icasp9_p2a_cd47_pam_shielded_donor_sha256": sha256_str(dxs_locus4_4048[:3461] + "C" + dxs_locus4_4048[3462:]),
"locus4_icasp9_p2a_cd47_native_parts_unshielded_donor_sha256": sha256_str(
aavs1_ha_l_600 + chs4_core_250 + cbx3_a2ucoe_455 + eef1a1_core_230 + kozak_9 + icasp9_dna[:-3] + gsg_p2a_dna + cd47_igv_gpi_dna + sv40_polya_122 + aavs1_ha_r_600
),
"locus4_icasp9_p2a_cd47_native_parts_unshielded_donor_sequence": (
aavs1_ha_l_600 + chs4_core_250 + cbx3_a2ucoe_455 + eef1a1_core_230 + kozak_9 + icasp9_dna[:-3] + gsg_p2a_dna + cd47_igv_gpi_dna + sv40_polya_122 + aavs1_ha_r_600
),
"max_disjoint_inverted_repeat_stem_locus4_4048bp_bp": _max_disjoint_inverted_repeat_stem_bp(dxs_locus4_4048),
"cistron_topology_order_requirement_muse_r1": (
"Mandatory cistron order on Locus 4 is EEF1A1 -> iCasp9(nostop, 1,188 bp) - GSG-P2A(66 bp) - CD47-IgV-GPI(stop, 528 bp) -> SV40pA(122 bp) "
"(exact part sum: 600 [AAVS1_HA_L] + 250 [cHS4] + 455 [CBX3-A2UCOE] + 230 [EEF1A1_core with 5'TOP-CAGAGA edit at 198..203 in dxs_locus4_4048 vs native CTTTTT in locus4_icasp9_p2a_cd47_native_parts_unshielded_donor_sequence] + 9 [Kozak] + 1188 [iCasp9 nostop] + 66 [GSG-P2A] + 528 [CD47-IgV-GPI stop] + 122 [SV40pA] + 600 [AAVS1_HA_R unshielded in locus4_icasp9_p2a_cd47_donor_sequence vs nt 14 G>C (donor nt 3462 G>C) PAM-shielded in dxs_locus4_4048bp_pam_shielded_donor_sequence] = 4,048 bp donor / 4,338 bp packaged; DEC-078): "
"cytosolic iCasp9 must be placed 5' so it retains the C-terminal 21-aa -GSG-P2A stub at Ser416 of the p10 catalytic subunit "
"in the cytosol (gated on Stage-0 cycloheximide t1/2 >= 6 h and Readout 6 10 nM AP1903 dimerization potency / clonogenic erasure parity "
"against scar-free LOCUS4; AUDIT-REF & D3-07), whereas CD47-IgV-GPI must be placed 3' so its N-terminal Proline + M1..A18 signal peptide "
"is cleaved by ER signal peptidase (verified by LC-MS for Ala18|Gln19 cleavage and PCA1 pyroglutamate cyclization; AUDIT-REF) "
"and its 37-aa CD55 GPI attachment signal (P345..T381, omega-site Ser353) resides at the true extreme C-terminus for ER GPI-transamidase cleavage "
"(AUDIT-REF & Q2-X2)."
),
"architecture": (
"Locus 1 Arm 1C: unidirectional B2M::HLA-E*01:03(VMAPRTLVL) SCT-only (3,300 bp constitutive EEF1A1+intron donor / "
"3,459 bp promoter-trapped+WPRE3 donor); Locus 4 AAVS1: cHS4-A2UCOE-EEF1A1-iCasp9(nostop)-GSG-P2A-CD47-IgV-GPI(stop)-SV40pA "
"(4,048 bp donor / 4,338 bp packaged, preserving K=4, B=0 genomic budget; AUDIT-REF & Q2-X2)"
),