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…

                                                   'protein_variant': 'T1096R',
                                                   'am_pathogenicity': 0.8757,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352465,
                                                   'offset_from_10352442_bp': 23,
                                                   'ref': 'G',
                                                   'alt': 'T',
                                                   'protein_variant': 'T1096K',
                                                   'am_pathogenicity': 0.9405,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352466,
                                                   'offset_from_10352442_bp': 24,
                                                   'ref': 'T',
                                                   'alt': 'A',
                                                   'protein_variant': 'T1096S',
                                                   'am_pathogenicity': 0.317,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352466,
                                                   'offset_from_10352442_bp': 24,
                                                   'ref': 'T',
                                                   'alt': 'C',
                                                   'protein_variant': 'T1096A',
                                                   'am_pathogenicity': 0.5673,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352466,
                                                   'offset_from_10352442_bp': 24,
                                                   'ref': 'T',
                                                   'alt': 'G',
                                                   'protein_variant': 'T1096P',
                                                   'am_pathogenicity': 0.9164,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352468,
                                                   'offset_from_10352442_bp': 26,
                                                   'ref': 'A',
                                                   'alt': 'C',
                                                   'protein_variant': 'L1095R',
                                                   'am_pathogenicity': 0.9102,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352468,
                                                   'offset_from_10352442_bp': 26,
                                                   'ref': 'A',
                                                   'alt': 'G',
                                                   'protein_variant': 'L1095P',
                                                   'am_pathogenicity': 0.9861,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352468,
                                                   'offset_from_10352442_bp': 26,
                                                   'ref': 'A',
                                                   'alt': 'T',
                                                   'protein_variant': 'L1095Q',
                                                   'am_pathogenicity': 0.8333,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352469,
                                                   'offset_from_10352442_bp': 27,
                                                   'ref': 'G',
                                                   'alt': 'C',
                                                   'protein_variant': 'L1095V',
                                                   'am_pathogenicity': 0.1961,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352469,
                                                   'offset_from_10352442_bp': 27,
                                                   'ref': 'G',
                                                   'alt': 'T',
                                                   'protein_variant': 'L1095M',
                                                   'am_pathogenicity': 0.1701,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352471,
                                                   'offset_from_10352442_bp': 29,
                                                   'ref': 'A',
                                                   'alt': 'C',
                                                   'protein_variant': 'L1094R',
                                                   'am_pathogenicity': 0.9835,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352471,
                                                   'offset_from_10352442_bp': 29,
                                                   'ref': 'A',
                                                   'alt': 'G',
                                                   'protein_variant': 'L1094P',
                                                   'am_pathogenicity': 0.9965,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352471,
                                                   'offset_from_10352442_bp': 29,
                                                   'ref': 'A',
                                                   'alt': 'T',
                                                   'protein_variant': 'L1094Q',
                                                   'am_pathogenicity': 0.9694,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352472,
                                                   'offset_from_10352442_bp': 30,
                                                   'ref': 'G',
                                                   'alt': 'C',
                                                   'protein_variant': 'L1094V',
                                                   'am_pathogenicity': 0.17,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352472,
                                                   'offset_from_10352442_bp': 30,
                                                   'ref': 'G',
                                                   'alt': 'T',
                                                   'protein_variant': 'L1094M',
                                                   'am_pathogenicity': 0.2305,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352473,
                                                   'offset_from_10352442_bp': 31,
                                                   'ref': 'C',
                                                   'alt': 'A',
                                                   'protein_variant': 'E1093D',
                                                   'am_pathogenicity': 0.9838,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352473,
                                                   'offset_from_10352442_bp': 31,
                                                   'ref': 'C',
                                                   'alt': 'G',
                                                   'protein_variant': 'E1093D',
                                                   'am_pathogenicity': 0.9838,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352474,
                                                   'offset_from_10352442_bp': 32,
                                                   'ref': 'T',
                                                   'alt': 'A',
                                                   'protein_variant': 'E1093V',
                                                   'am_pathogenicity': 0.9927,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352474,
                                                   'offset_from_10352442_bp': 32,
                                                   'ref': 'T',
                                                   'alt': 'C',
                                                   'protein_variant': 'E1093G',
                                                   'am_pathogenicity': 0.9822,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352474,
                                                   'offset_from_10352442_bp': 32,
                                                   'ref': 'T',
                                                   'alt': 'G',
                                                   'protein_variant': 'E1093A',
                                                   'am_pathogenicity': 0.985,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352475,
                                                   'offset_from_10352442_bp': 33,
                                                   'ref': 'C',
                                                   'alt': 'G',
                                                   'protein_variant': 'E1093Q',
                                                   'am_pathogenicity': 0.948,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352475,
                                                   'offset_from_10352442_bp': 33,
                                                   'ref': 'C',
                                                   'alt': 'T',
                                                   'protein_variant': 'E1093K',
                                                   'am_pathogenicity': 0.982,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352477,
                                                   'offset_from_10352442_bp': 35,
                                                   'ref': 'T',
                                                   'alt': 'A',
                                                   'protein_variant': 'Y1092F',
                                                   'am_pathogenicity': 0.2574,
                                                   'am_class': 'likely_benign'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352477,
                                                   'offset_from_10352442_bp': 35,
                                                   'ref': 'T',
                                                   'alt': 'C',
                                                   'protein_variant': 'Y1092C',
                                                   'am_pathogenicity': 0.7767,
                                                   'am_class': 'likely_pathogenic'},
                                                  {'chrom': 'chr19',
                                                   'pos_hg38': 10352477,
                                                   'offset_from_10352442_bp': 35,
                                                   'ref': 'T',
                                                   'alt': 'G',
                                                   'protein_variant': 'Y1092S',
                                                   'am_pathogenicity': 0.9317,
                                                   'am_class': 'likely_pathogenic'}]},
 'clonal_sequencing_sensitivity_non_replacement_proof': {'idealized_30x_binomial_at_5pct_vaf': {'p_zero_alt_reads_exact': 0.214639,
                                                                                                'p_at_least_3_alt_reads_sensitivity': 0.187821,
                                                                                                'one_sided_95pct_upper_vaf_at_0_of_30': 0.095034,
                                                                                                'caveat': 'Idealized '
                                                                                                          'independent-read '
                                                                                                          'binomial '
                                                                                                          'bound prior '
                                                                                                          'to coverage '
                                                                                                          'overdispersion, '
                                                                                                          'allele '
                                                                                                          'dropout, or '
                                                                                                          'mapping '
                                                                                                          'bias.'},
                                                         'playbook_63000x_target_enriched_duplex_at_1e4_vaf': {'mean_mutant_duplex_molecules_lambda': 6.3,
                                                                                                               'p_at_least_3_mutant_duplex_molecules': 0.950151,
                                                                                                               'protocol_minimum_duplex_molecules': 62958},
                                                         'retained_mandatory_gates': '30x whole-genome sequencing '
                                                                                     'cannot bound 5% or 10^-4 somatic '
                                                                                     'mosaicism; all Playbook >= '
                                                                                     '63,000x TP53/PPM1D/BCOR '
                                                                                     'duplex-seq, 20q11.21 BCL2L1 '
                                                                                     'ddPCR, Nutlin-3a functional p53, '
                                                                                     '15-25 kb long-read LOH, '
                                                                                     'CAST-Seq, and Tier 6A/6B iCasp9 '
                                                                                     'clonogenic erasure gates remain '
                                                                                     '100% unchanged and authoritative '
                                                                                     '(GY-002).'}}


def _build_design_b2_tyk2_hlac_qualification_note_iip_0017() -> Dict[str, Any]:
    """Return non-auto-routing qualification boundary for Design B2 TYK2 p.Pro1104Ala on retained HLA-C (IIP-0017; DEC-095)."""
    return {'decision_id': 'DEC-095',
 'contribution_id': 'IIP-0017',
 'applies_to_product_variant_id': 'ISLET1_B2_5LOCUS_TYK2_PE',
 'distinct_untouched_comparators': ['ISLET1_B1_6LOCUS_TYK2_KO_INS (scored 6-locus Scenario B TYK2-/- KO comparator)',
                                    'ISLET1_B2_5LOCUS_BASE (WT TYK2 1104P retained-HLA-C counterfactual)',