preamble:
   input_reference_genome: hg19/genomes/ucsc-hg19
   summary: Clinical Annotation Pipeline for hg19
   description: This pipeline annotates hg19 variants with clinical resources.
   
annotators:

- liftover_annotator:
    chain: liftover/hg19_to_hg38
    attributes:
    - name: hg38_annotatable 
      source: liftover_annotatable
      internal: true

- effect_annotator:
    gene_models: hg38/gene_models/MANE/1.5 
    input_annotatable: hg38_annotatable
    attributes:
    - name: worst_effect_MANE_1.5
      source: worst_effect 
    - name: effect_details_MANE_1.5
      source: effect_details 
    - name: gene_effects_MANE_1.5
      source: gene_effects 
      
- normalize_allele_annotator:
    genome: hg38/genomes/ucsc-hg38
    input_annotatable: hg38_annotatable

- allele_score_annotator:
    resource_id: hg38/scores/dbSNP
    input_annotatable: normalized_allele    
    attributes:
    - name: dbSNP_rs_number
      source: RS  

- allele_score_annotator:
    resource_id: hg38/variant_frequencies/gnomAD_4.1.0/exomes/ALL
    input_annotatable: normalized_allele

- allele_score_annotator:
    resource_id: hg38/variant_frequencies/gnomAD_4.1.0/genomes/ALL
    input_annotatable: normalized_allele

- allele_score_annotator:
    resource_id: hg38/scores/ClinVar_20251019
    input_annotatable: normalized_allele
    attributes:
    - name: clinical_significance
      source: CLNSIG    
    - name: clinical_disease_name
      source: CLNDN 

- position_score_annotator:
    resource_id: hg38/scores/phyloP7way
    input_annotatable: normalized_allele
    attributes:
    - name: phyloP7way
      source: phyloP7way

- allele_score_annotator:
    resource_id: hg38/scores/AlphaMissense
    input_annotatable: normalized_allele
    attributes:
    - name: AlphaMissense_pathogenicity
      source: am_pathogenicity
    - name: AlphaMissense_class
      source: am_class 

- allele_score_annotator:
    resource_id: hg19/scores/MPC

- effect_annotator:
    gene_models: hg38/gene_models/GENCODE/49/basic/ALL
    genome: hg38/genomes/GRCh38.p14
    input_annotatable: hg38_annotatable
    attributes:
    - name: worst_effect_GENCODE_49
      source: worst_effect 
    - name: effect_details_GENCODE_49
      source: effect_details 
    - name: gene_effects_GENCODE_49
      source: gene_effects 
    - name: gene_list 
      internal: true

- gene_score_annotator:
    resource_id: gene_properties/gene_scores/pLI
    input_gene_list: gene_list
    attributes:
    - name: pLI_rank_all
      source: pLI_rank
    - name: pLI_rank_min
      source: pLI_rank
      aggregator: min 
      
- gene_score_annotator:
    resource_id: gene_properties/gene_scores/LOEUF
    input_gene_list: gene_list
    attributes:
    - name: LOEUF_rank_all
      source: LOEUF_rank
    - name: LOEUF_rank_min
      source: LOEUF_rank
      aggregator: min 