OpenIslet

scripts/run_layer5_personalized_patient_compiler.py

Layer 5: Personalized Patient-DNA & Multiplex CRISPR Compiler + 10,000-Patient Global Population Simulator (v0.8.0)

script Release v0.8.0 gen-eb955f8266035aba 494 KB · 31 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_layer5_personalized_patient_compiler.py · SHA-256: 0b285369ac6e4409…

                                                                  'am_class': 'LPath',
                                                                  'gene': 'FKBP1A',
                                                                  'engineering_context': 'iCasp9 FKBP12(F36V) AP1903 '
                                                                                         'bump-hole pocket mutation '
                                                                                         '(1-based Met1-included = '
                                                                                         'F37V)'},
                                                                 {'variant': 'C33G',
                                                                  'score': 0.9646,
                                                                  'am_class': 'LPath',
                                                                  'gene': 'CD47',
                                                                  'engineering_context': 'Arm 1X unpaired Cys15->Gly '
                                                                                         '(precursor Cys33->Gly, '
                                                                                         'removing orphan disulfide '
                                                                                         'partner of TM Cys263)'},
                                                                 {'variant': 'C33S',
                                                                  'score': 0.9945,
                                                                  'am_class': 'LPath',
                                                                  'gene': 'CD47',
                                                                  'engineering_context': 'Alternative conservative '
                                                                                         'CD47 Cys15->Ser '
                                                                                         'substitution'},
                                                                 {'variant': 'C33A',
                                                                  'score': 0.9943,
                                                                  'am_class': 'LPath',
                                                                  'gene': 'CD47',
                                                                  'engineering_context': 'Alternative conservative '
                                                                                         'CD47 Cys15->Ala '
                                                                                         'substitution'},
                                                                 {'variant': 'Y108A',
                                                                  'score': 0.6972,
                                                                  'am_class': 'LPath',
                                                                  'gene': 'HLA-C',
                                                                  'engineering_context': "Design B'-SCT mature "
                                                                                         'Tyr84->Ala F-pocket '
                                                                                         'groove-opening substitution '
                                                                                         '(precursor Y108A)'},
                                                                 {'variant': 'Y108C',
                                                                  'score': 0.394,
                                                                  'am_class': 'Amb',
                                                                  'gene': 'HLA-C',
                                                                  'engineering_context': "Design B'-SCT DT1/DT2 mature "
                                                                                         'Tyr84->Cys disulfide-trap '
                                                                                         'substitution (precursor '
                                                                                         'Y108C)'},
                                                                 {'variant': 'A163C',
                                                                  'score': 0.7645,
                                                                  'am_class': 'LPath',
                                                                  'gene': 'HLA-C',
                                                                  'engineering_context': "Design B'-SCT DT2 mature "
                                                                                         'Ala139->Cys disulfide-staple '
                                                                                         'partner (precursor A163C)'},
                                                                 {'variant': 'T167A',
                                                                  'score': 0.2728,
                                                                  'am_class': 'LBen',
                                                                  'gene': 'HLA-C',
                                                                  'engineering_context': 'Finton 2023 mature '
                                                                                         'Thr143->Ala F-pocket '
                                                                                         'exchange-blocking mutation '
                                                                                         '(precursor T167A)'},
                                                                 {'variant': 'W171A',
                                                                  'score': None,
                                                                  'am_class': 'NOT_IN_CANONICAL_ISOFORM_OR_WT',
                                                                  'gene': 'HLA-C',
                                                                  'engineering_context': 'Finton 2023 mature '
                                                                                         'Trp147->Ala F-pocket '
                                                                                         'exchange-blocking mutation '
                                                                                         '(precursor W171A)'},
                                                                 {'variant': 'R128G',
                                                                  'score': None,
                                                                  'am_class': 'NOT_IN_CANONICAL_ISOFORM_OR_WT',
                                                                  'gene': 'HLA-E',
                                                                  'engineering_context': 'HLA-E*01:01 (Arg107) -> '
                                                                                         'HLA-E*01:03 (Gly107) natural '
                                                                                         'thermal-stability dimorphism '
                                                                                         '(precursor pos 128)'},
                                                                 {'variant': 'G128R',
                                                                  'score': 0.1746,
                                                                  'am_class': 'LBen',
                                                                  'gene': 'HLA-E',
                                                                  'engineering_context': 'HLA-E*01:03 (Gly107) -> '
                                                                                         'HLA-E*01:01 (Arg107) reverse '
                                                                                         'check'},
                                                                 {'variant': 'P1104A',
                                                                  'score': 0.8292,
                                                                  'am_class': 'LPath',
                                                                  'gene': 'TYK2',
                                                                  'engineering_context': 'Protective hypomorphic '
                                                                                         'rs34536443 '
                                                                                         'pseudokinase/kinase '
                                                                                         'interface edit (Design B2 / '
                                                                                         'Track 2)'},
                                                                 {'variant': 'I923V',
                                                                  'score': 0.12,
                                                                  'am_class': 'LBen',
                                                                  'gene': 'IFIH1',
                                                                  'engineering_context': 'Protective rare T1D '
                                                                                         'loss-of-function MDA5 '
                                                                                         'variant rs35667974'},
                                                                 {'variant': 'T946A',
                                                                  'score': None,
                                                                  'am_class': 'NOT_IN_CANONICAL_ISOFORM_OR_WT',
                                                                  'gene': 'IFIH1',
                                                                  'engineering_context': 'Common T1D protective/risk '
                                                                                         'polymorphism rs1990760 '
                                                                                         '(UniProt Q9BYX4 carries '
                                                                                         'Thr946)'},
                                                                 {'variant': 'A946T',
                                                                  'score': 0.0739,
                                                                  'am_class': 'LBen',
                                                                  'gene': 'IFIH1',
                                                                  'engineering_context': 'Reverse check if UniProt '
                                                                                         'carries Ala946'},
                                                                 {'variant': 'R325W',
                                                                  'score': 0.0747,
                                                                  'am_class': 'LBen',
                                                                  'gene': 'SLC30A8',
                                                                  'engineering_context': 'Common ZnT8 polymorphism '
                                                                                         'rs13266634'},
                                                                 {'variant': 'W325R',
                                                                  'score': None,
                                                                  'am_class': 'NOT_IN_CANONICAL_ISOFORM_OR_WT',
                                                                  'gene': 'SLC30A8',
                                                                  'engineering_context': 'Reverse check if UniProt '
                                                                                         'carries Trp325'}]},
 'tyk2_exon23_p1104a_window_audit': {'queried_genomic_window_grch38': 'chr19:10352407-10352477 (+/-35 bp around '
                                                                      'chr19:10352442)',
                                     'exonic_missense_span_grch38': 'chr19:10352435-10352477 (-7..+35 bp; positions < '
                                                                    '10352435 cross into intron)',
                                     'tyk2_hg38_csv_sha256': '466fe6c1f38f7a228c797b163bff140c1f9f96f3ff94a33601dc266632f68415',
                                     'exonic_missense_snv_count': 96,
                                     'likely_pathogenic_gt_0564_count': 38,
                                     'snv_rows': [{'chrom': 'chr19',
                                                   'pos_hg38': 10352435,
                                                   'offset_from_10352442_bp': -7,
                                                   'ref': 'G',
                                                   'alt': 'A',
                                                   'protein_variant': 'T1106M',
                                                   'am_pathogenicity': 0.0734,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352435,
                                                   'offset_from_10352442_bp': -7,
                                                   'ref': 'G',
                                                   'alt': 'C',
                                                   'protein_variant': 'T1106R',
                                                   'am_pathogenicity': 0.1012,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352435,
                                                   'offset_from_10352442_bp': -7,
                                                   'ref': 'G',
                                                   'alt': 'T',
                                                   'protein_variant': 'T1106K',
                                                   'am_pathogenicity': 0.1396,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352436,
                                                   'offset_from_10352442_bp': -6,
                                                   'ref': 'T',
                                                   'alt': 'A',
                                                   'protein_variant': 'T1106S',
                                                   'am_pathogenicity': 0.0734,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352436,
                                                   'offset_from_10352442_bp': -6,
                                                   'ref': 'T',
                                                   'alt': 'C',
                                                   'protein_variant': 'T1106A',
                                                   'am_pathogenicity': 0.0528,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352436,
                                                   'offset_from_10352442_bp': -6,
                                                   'ref': 'T',
                                                   'alt': 'G',
                                                   'protein_variant': 'T1106P',
                                                   'am_pathogenicity': 0.3088,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352438,
                                                   'offset_from_10352442_bp': -4,
                                                   'ref': 'G',
                                                   'alt': 'A',
                                                   'protein_variant': 'P1105L',
                                                   'am_pathogenicity': 0.4039,
                                                   'am_class': 'ambiguous'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352438,
                                                   'offset_from_10352442_bp': -4,
                                                   'ref': 'G',
                                                   'alt': 'C',
                                                   'protein_variant': 'P1105R',
                                                   'am_pathogenicity': 0.5841,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352438,
                                                   'offset_from_10352442_bp': -4,
                                                   'ref': 'G',
                                                   'alt': 'T',
                                                   'protein_variant': 'P1105H',
                                                   'am_pathogenicity': 0.6115,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352439,