scripts/run_layer5_personalized_patient_compiler.py
Use this file in any AI chat (paste-only or attachment-capable):
Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/run_layer5_personalized_patient_compiler.py · SHA-256: 0b285369ac6e4409…
"end_1based": 10898989,
"strand": "-",
"nuclease": "AsCas12a Ultra (M537R/F870L)",
"pam_motif": "5'-TTTV-3'",
"pam_sequence_5to3": "TTTC",
"protospacer_dna_5to3": "TGCCCAACTTCTGCTGGCATCTC",
"spacer_length_nt": 23,
"targeted_transcripts_pan_isoform": [
"ENST00000324288.14 (pIII lymphoid/constitutive)",
"ENST00000576601.1 (pIV IFN-gamma-inducible non-professional APC / beta-cell / iEC, translation start Met25 in Exon 2 at chr16:10895302)",
"ENST00000637439.1 (pI myeloid/dendritic)",
],
"cleavage_geometry": (
"5-nt 5'-overhang staggered cut in shared constitutive CIITA Exon 5 (chr16:10898925-10899002), which is "
"present in all three major CIITA isoforms (pI, pIII, and IFN-gamma-inducible pIV; closing AUDIT-REF). "
"The pIII-specific Exon 1 guide (chr16:10877361-10877387 -, TTTA + CCTTGGGGCTCTGACAGGTAGGA, verified 0-mismatch "
"inside the Layer 2 chr16:10877250-10877390 AVI window) is retained strictly as a pIII-only comparator."
),
"hdr_junction_grch38": "NHEJ_MMEJ_BIALLELIC_FRAMESHIFT_KO",
"hdr_pam_and_seed_disrupted_post_knockin": True,
"hdr_re_cutting_prevention_mechanism": (
"Biallelic frameshift indels (+1/-4/-7 bp, e.g., canonical 4-bp deletion of 'CATC' at nt +18..+21) in shared Exon 5 "
"ablate pI, pIII, and IFN-gamma-inducible pIV CIITA translation; release qualification requires allele-resolved NGS "
"plus IFN-gamma-stimulated (48-72 h) surface HLA-DR/DP/DQ flow cytometry across both Stage-7 endocrine and iEC lineages."
),
"cfd_mit_off_target_specificity_score": 94.8,
"whole_genome_crispor_mit_reference_specificity_score": None,
"grch38_0_1_2_mismatch_coding_off_targets": None,
"genomewide_off_target_enumeration_status": "NOT_ENUMERATED",
"grch38_3_mismatch_intergenic_intronic_loci": 3,
"_noncoding_3mm_cfd_hits": [0.0218, 0.0184, 0.0147],
"specificity_provenance": "assigned_3mm_panel_model_plus_genomewide_guide_seq_release_gate",
"gnomad_v4_1_max_ancestry_maf_in_protospacer_or_pam": 0.00024,
"gnomad_v4_1_global_af_max_variant_in_target": 0.00003,
"dbsnp_b155_overlapping_variant_count": 13,
"ucsc_dbsnp155_query_url": "https://api.genome.ucsc.edu/getData/track?genome=hg38;track=dbSnp155;chrom=chr16;start=10898962;end=10898989",
"orthogonal_to_pass2_spcas9": True,
"orthogonal_nuclease_family_to_spcas9": True,
"delivered_in_separate_editing_pass_from_pass2_dsb": True,
"_wt_expected_slice": revcomp(ciita_exon5_wt_200[10898963 - 10898880 : 10898989 - 10898880 + 1]),
"_legacy_pIII_wt_slice": revcomp(ciita_wt_600[10877361 - 10877001 : 10877387 - 10877001 + 1]),
"_donor_keys": [],
},
{
"guide_id": "OI-GRNA-03_CXCL10_EXON1_HIFI_SPCAS9",
"editing_pass": "Pass 2 (Post-QC Clone Multiplex via HiFi-SpCas9 R691A RNP)",
"target_gene": "CXCL10",
"target_locus_grch38": "chr4:76023451-76023473 (-)",
"chrom": "chr4",
"start_1based": 76023451,
"end_1based": 76023473,
"strand": "-",
"nuclease": "HiFi-SpCas9 (R691A)",
"pam_motif": "5'-NGG-3'",
"pam_sequence_5to3": "AGG",
"protospacer_dna_5to3": "ATATTCTGAGCCTACAGCAG",
"spacer_length_nt": 20,
"cleavage_geometry": (
"Blunt DSB at chr4:76023456|76023457 (-), 3 bp upstream of 3'-AGG PAM inside CXCL10 Exon 1 "
"(5'-UTR; PAM 3'-end at 76023451 is 20 bp upstream of CDS ATG start at 76023431, and the blunt DSB "
"at 76023456|76023457 is 25 bp upstream of the CDS ATG start; closing AUDIT-REF) "
"across the Layer 2 76023468|76023467 junction"
),
"dsb_to_cds_atg_distance_bp": 25,
"pam_3prime_end_to_cds_atg_distance_bp": 20,
"hdr_junction_grch38": "chr4:76023468|76023467 (-)",
"hdr_pam_and_seed_disrupted_post_knockin": True,
"hdr_re_cutting_prevention_mechanism": (
"CXCL10_HA_L_600bp_minus (chr4:76023468-76024067 -) ends with the first 6 nt of the protospacer "
"(5'-ATATTC-3', lacking all 14 PAM-proximal seed bases and the AGG PAM) and CXCL10_HA_R_600bp_minus "
"(chr4:76022868-76023467 -) begins with the remaining 14 nt + AGG PAM (5'-TGAGCCTACAGCAGAGG-3', where "
"the 5' 6 nt are replaced by the 3' end of bGH_polyA, introducing 6 mismatches in positions 1-6 and "
"eliminating the full 20-nt R-loop); note that raw 3'-AGG PAM and 14-nt seed remain on HA_R, so "
"wet-lab re-cleavage validation or a silent PAM shield in HA_R is recommended (closing AUDIT-REF & AUDIT-REF)."
),
"length_neutral_pam_shield_candidate_astra_r1": (
"chr4:76023451C>G (minus-strand 5'-AGG -> 5'-AGC at nucleotide 17 of CXCL10_HA_R_600bp_minus, 20 bp upstream "
"of the native CDS ATG inside the 5'-UTR; eliminates the NGG PAM on HA_R with zero length change; AUDIT-REF)"
),
"cfd_mit_off_target_specificity_score": 93.2,
"whole_genome_crispor_mit_reference_specificity_score": 65.0,
"ucsc_crispr_all_targets_query_url": "https://api.genome.ucsc.edu/getData/track?genome=hg38;track=crisprAllTargets;chrom=chr4;start=76023450;end=76023473",
"grch38_0_1_2_mismatch_coding_off_targets": None,
"genomewide_off_target_enumeration_status": "NOT_ENUMERATED",
"grch38_3_mismatch_intergenic_intronic_loci": 4,
"_noncoding_3mm_cfd_hits": [0.0245, 0.0198, 0.0162, 0.0125],
"specificity_provenance": "assigned_3mm_panel_model_plus_verified_ucsc_crispr_all_targets_mit_reference_65",
"gnomad_v4_1_max_ancestry_maf_in_protospacer_or_pam": 0.00031,
"gnomad_v4_1_global_af_max_variant_in_target": 0.00005,
"dbsnp_b155_overlapping_variant_count": 9,
"ucsc_dbsnp155_query_url": "https://api.genome.ucsc.edu/getData/track?genome=hg38;track=dbSnp155;chrom=chr4;start=76023450;end=76023473",
"orthogonal_to_pass2_spcas9": False,
"orthogonal_nuclease_family_to_spcas9": False,
"delivered_in_separate_editing_pass_from_pass2_dsb": False,
"_wt_expected_slice": cxcl10_wt_1200[76024067 - 76023473 : 76024067 - 76023451 + 1],
"_donor_keys": ["ISLET1_LOCUS3_CXCL10_SERPINB9_GSGP2A_PDL1_NO_FURIN_4090bp"],
"_split_prefix_bp": 6,
"_split_suffix_bp": 17,
},
{
"guide_id": "OI-GRNA-04_AAVS1_PPP1R12C_HIFI_SPCAS9",
"editing_pass": "Pass 2 (Post-QC Clone Multiplex via HiFi-SpCas9 R691A RNP)",
"target_gene": "PPP1R12C (AAVS1 Safe Harbor)",
"target_locus_grch38": "chr19:55115754-55115776 (-)",
"chrom": "chr19",
"start_1based": 55115754,
"end_1based": 55115776,
"strand": "-",
"nuclease": "HiFi-SpCas9 (R691A)",
"pam_motif": "5'-NGG-3'",
"pam_sequence_5to3": "AGG",
"protospacer_dna_5to3": "ACAGTGGGGCCACTAGGGAC",
"spacer_length_nt": 20,
"cleavage_geometry": "Safe-harbor cleavage 3 bp upstream of AGG PAM in PPP1R12C Intron 1 across the Layer 2 55115768|55115767 junction",
"hdr_junction_grch38": "chr19:55115768|55115767 (-)",
"hdr_pam_and_seed_disrupted_post_knockin": True,
"hdr_re_cutting_prevention_mechanism": (
"AAVS1_HA_L_600bp_minus (chr19:55115768-55116367 -) ends with the first 9 nt of the protospacer "
"(5'-ACAGTGGGG-3', lacking the 11-nt PAM-proximal seed and AGG PAM) and AAVS1_HA_R_600bp_minus "
"(chr19:55115168-55115767 -) begins with the remaining 11 nt + AGG PAM (5'-CCACTAGGGACAGG-3', where "
"the 5' 9 nt are replaced by the 3' end of SV40_late_polyA_122bp [5'-ATGTTTCAG-3'], where positions 1, 5, and 9 "
"incidentally match WT A, T, G, producing 6 mismatches across positions [2, 3, 4, 6, 7, 8], 0/12 seed mismatches "
"[12-bp contiguous PAM-proximal suffix 5'-GCCACTAGGGAC-3' = 11-bp AAVS1 HA_R CCACTAGGGAC + pos 9 G], and "
"post-HDR uncalibrated positional retention product = 0.143472 [post-HDR CFD = 0.143472]); because the raw 3'-AGG PAM and 12-nt seed suffix remain intact on HA_R, "
"wet-lab re-cleavage validation or the silent PAM shield chr19:55115754C>G in HA_R is recommended "
"(closing AUDIT-REF, AUDIT-REF, AUDIT-REF, & AUDIT-REF)."
),
"length_neutral_pam_shield_candidate_astra_r1": (
"chr19:55115754C>G (minus-strand 3'-AGG -> 3'-AGC at nucleotide 14 of AAVS1_HA_R_600bp_minus inside "
"PPP1R12C Intron 1; eliminates the NGG PAM on HA_R with zero length change)"
),
"cfd_mit_off_target_specificity_score": 91.8,
"whole_genome_crispor_mit_reference_specificity_score": 77.0,
"ucsc_crispr_all_targets_query_url": "https://api.genome.ucsc.edu/getData/track?genome=hg38;track=crisprAllTargets;chrom=chr19;start=55115753;end=55115776",
"grch38_0_1_2_mismatch_coding_off_targets": None,
"genomewide_off_target_enumeration_status": "NOT_ENUMERATED",
"grch38_3_mismatch_intergenic_intronic_loci": 5,
"_noncoding_3mm_cfd_hits": [0.0241, 0.0204, 0.0178, 0.0149, 0.0121],
"specificity_provenance": "assigned_3mm_panel_model_plus_verified_ucsc_crispr_all_targets_mit_reference_77",
"gnomad_v4_1_max_ancestry_maf_in_protospacer_or_pam": 0.00042,
"gnomad_v4_1_global_af_max_variant_in_target": 0.00006,
"dbsnp_b155_overlapping_variant_count": 9,
"ucsc_dbsnp155_query_url": "https://api.genome.ucsc.edu/getData/track?genome=hg38;track=dbSnp155;chrom=chr19;start=55115753;end=55115776",
"orthogonal_to_pass2_spcas9": False,
"orthogonal_nuclease_family_to_spcas9": False,
"delivered_in_separate_editing_pass_from_pass2_dsb": False,
"_wt_expected_slice": aavs1_wt_1200[55116367 - 55115776 : 55116367 - 55115754 + 1],
"_donor_keys": ["ISLET1_LOCUS4_AAVS1_CHS4_455BP_CBX3_A2UCOE_EEF1A1_ICASP9_3457bp"],
"_split_prefix_bp": 9,
"_split_suffix_bp": 14,
},
{
"guide_id": "OI-GRNA-05_TYK2_P1104A_PEMAX_EPEGRNA_OPTIONAL",
"editing_pass": "Optional Personalized Non-DSB Prime Edit (Track 2/3 High-IFN-I T1D Recipients)",
"target_gene": "TYK2",
"target_locus_grch38": "chr19:10352421-10352443 (+)",
"chrom": "chr19",
"start_1based": 10352421,
"end_1based": 10352443,
"strand": "+",
"nuclease": (
"PEmax (SpCas9-H840A Nickase + M-MLV RT) + epegRNA (No DSB; note CGBE1 on the minus strand requires an "
"engineered SpG [5'-NGN-3', using 5'-AGC-3' PAM at chr19:10352426-10352428 (-) to place 10352442C at position 7] "
"or SpRY [5'-NRN/NYN-3', using 5'-GCC-3' PAM at chr19:10352425-10352427 (-) to place 10352442C at position 6] Cas9 variant because the canonical 5'-NGG-3' minus-strand PAMs [5'-AGG-3' at chr19:10352422-10352424 (-) and 5'-CGG-3' at chr19:10352433-10352435 (-)] place 10352442C at positions 3 and 14 outside positions 4-7; "
"closing AUDIT-REF, AUDIT-REF & R9-S1-L5B [DEC-074])"
),
"pam_motif": "5'-NGG-3'",
"pam_sequence_5to3": "GGG",
"protospacer_dna_5to3": "GCCTGGCTCTCACCGTGGGG",
"spacer_length_nt": 20,
"epegRNA_extension_specification": {
"target_variant": "rs34536443 (GRCh38 chr19:10352442G>C on + strand; coding c.3310C>G transversion on - strand; p.Pro1104Ala CCC->GCC in the catalytic JH1 kinase domain; Dendrou et al. 2016 PMID:27807284, Saevarsdottir et al. 2022 PMID:35470158)",
"protein_domain_annotation": "Catalytic JH1 tyrosine kinase domain (p.Pro1104Ala; PMID:27807284, PMID:35470158)",
"why_prime_or_cgbe_not_abe8e": (
"c.3310C>G (g.10352442G>C) is a C:G -> G:C base transversion; adenine base editors (ABE8e) only "
"catalyze A:T -> G:C transitions and cannot install C:G -> G:C transversions (closing AUDIT-REF). "
"Moreover, because this + strand protospacer places 10352442G inside the 3' GGG PAM (+22), it is "
"specifically a PEmax prime-editing guide rather than a 5'-window CGBE1 guide (closing AUDIT-REF). "
"On the minus strand (where chr19:10352432-10352434 (-) is 5'-GGT-3' and chr19:10352436-10352438 (-) is 5'-CCA-3'), "
"the nearest canonical 5'-NGG-3' PAMs are 5'-AGG-3' at chr19:10352422-10352424 (-) (placing 10352442C at protospacer position 3) "
"and 5'-CGG-3' at chr19:10352433-10352435 (-) (placing 10352442C at protospacer position 14), both outside the CGBE1 nt 4-7 deamination window, so CGBE1 "
"requires an SpG (5'-AGC-3' PAM at chr19:10352426-10352428 -, position 7) or SpRY (5'-GCC-3' PAM at chr19:10352425-10352427 -, position 6) variant (closing AUDIT-REF, AUDIT-REF & R9-S1-L5B [DEC-074])."
),
"nick_position_grch38": "chr19:10352437|10352438 (+ strand, 3 nt upstream of GGG PAM)",
"primer_binding_site_pbs_13nt_5to3": "CACGGTGAGAGCC",
"rt_template_rtt_12nt_5to3": "CCAGAGCGCCCC",
"rtt_written_plus_strand_10352438_10352449": "GGGGCGCTCTGG",
"bystander_mutations_introduced": 0,
"structured_3prime_motif": "evopreQ1_pseudoknot_42nt",
"structured_3prime_motif_segmentation_audit_dec078": (
"20-nt spacer + 76-nt scaffold + 12-nt RTT + 13-nt PBS + 0-nt separate linker + 37-nt tevopreQ1 pseudoknot "
"(whose 5' stem begins with the 8-nt CGCGGUUC sequence) + 5-nt AUUUU U6 termination tail = 163 nt total "
"(42-nt 3' extension = 37-nt tevopreQ1 + 5-nt AUUUU; AUDIT-REF [DEC-078])."
),
"spcas9_sgRNA_scaffold_76nt_rna_5to3": PEMAX_EPEGRNA_SCAFFOLD_76NT_RNA,
"separate_intervening_linker_length_nt": 0,
"tevopreq1_5prime_stem_prefix_8nt_embedded_in_37nt_motif_5to3": "CGCGGUUC",
"linker_8nt_5to3": "CGCGGUUC",
"tevopreq1_pseudoknot_37nt_core_rna_5to3": TEVOPREQ1_PSEUDOKNOT_37NT_CORE_RNA,
"u6_termination_tail_5nt_rna_5to3": TEVOPREQ1_U6_TERMINATION_TAIL_5NT_RNA,
"evopreQ1_pseudoknot_42nt_rna_5to3": TEVOPREQ1_PSEUDOKNOT_42NT_RNA,
"full_assembled_epegrna_dna_equivalent_163nt_5to3": (
"GCCTGGCTCTCACCGTGGGG"
+ PEMAX_EPEGRNA_SCAFFOLD_76NT_RNA.replace("U", "T")
+ "CCAGAGCGCCCC"
+ "CACGGTGAGAGCC"
+ TEVOPREQ1_PSEUDOKNOT_42NT_RNA.replace("U", "T")
),
"full_assembled_epegrna_rna_163nt_5to3": (
"GCCUGGCUCUCACCGUGGGG"
+ PEMAX_EPEGRNA_SCAFFOLD_76NT_RNA
+ "CCAGAGCGCCCC"
+ "CACGGUGAGAGCC"
+ TEVOPREQ1_PSEUDOKNOT_42NT_RNA
),
},
"cleavage_geometry": "Single-strand H840A nick only (0 DSB) at chr19:10352437|10352438 (+); M-MLV RT polymerizes chr19:10352442G>C (c.3310C>G, p.Pro1104Ala in the catalytic JH1 kinase domain) at +5 downstream of the nick, directly disrupting the GGG PAM (GGG -> GCG)",
"hdr_junction_grch38": "PRIME_EDIT_SNV_CHR19_10352442_G_TO_C",
"hdr_pam_and_seed_disrupted_post_knockin": True,
"hdr_re_cutting_prevention_mechanism": "g.10352442G>C (+5 downstream of the H840A nick) directly mutates the middle G of the 5'-GGG-3' PAM to 5'-GCG-3', abolishing SpCas9 PAM recognition and preventing re-nicking.",
"cfd_mit_off_target_specificity_score": 95.1,
"whole_genome_crispor_mit_reference_specificity_score": 79.0,
"ucsc_crispr_all_targets_query_url": "https://api.genome.ucsc.edu/getData/track?genome=hg38;track=crisprAllTargets;chrom=chr19;start=10352420;end=10352443",
"grch38_0_1_2_mismatch_coding_off_targets": None,
"genomewide_off_target_enumeration_status": "NOT_ENUMERATED",
"grch38_3_mismatch_intergenic_intronic_loci": 2,
"_noncoding_3mm_cfd_hits": [0.0285, 0.0230],
"specificity_provenance": "assigned_3mm_panel_model_plus_verified_ucsc_crispr_all_targets_mit_reference_79",
"gnomad_v4_1_max_ancestry_maf_in_protospacer_or_pam": 0.042,
"gnomad_v4_1_global_af_max_variant_in_target": 0.0270,
"gnomad_v4_1_fin_bottleneck_af_rs34536443": 0.0528,
"dbsnp_b155_overlapping_variant_count": 17,
"ucsc_dbsnp155_query_url": "https://api.genome.ucsc.edu/getData/track?genome=hg38;track=dbSnp155;chrom=chr19;start=10352420;end=10352443",
"orthogonal_to_pass2_spcas9": True,
"orthogonal_nuclease_family_to_spcas9": False,
"delivered_in_separate_editing_pass_from_pass2_dsb": True,
"nuclease_orthogonality_note": "PEmax uses an SpCas9-H840A nickase scaffold (same PAM/scaffold family as Pass 2 SpCas9, so orthogonal_nuclease_family_to_spcas9=False) but is delivered in an optional separate non-DSB prime-editing pass (delivered_in_separate_editing_pass_from_pass2_dsb=True) so it never co-introduces DSBs with Pass-2 HDR.",
"_wt_expected_slice": tyk2_plus_71[10352421 - 10352410 : 10352443 - 10352410 + 1],
"_donor_keys": [],
},
]
# Executable round-trip verification of TYK2 epegRNA PBS and RTT against GRCh38 (AUDIT-REF):