Skip to content

Commit

Permalink
Added snpeff_db_identifier for Functional annotation. (#482)
Browse files Browse the repository at this point in the history
- Removed hard-coded plasmodium snpeff database specification.
- Added new input `snpeff_db_identifier` for a snpeff database
  specification to SRJointCallGVCFsWithGenomicsDB and
  FunctionalAnnotation`
  • Loading branch information
jonn-smith authored Dec 13, 2024
1 parent 076f587 commit b169a39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ workflow SRJointCallGVCFsWithGenomicsDB {
Array[String]? annotation_bed_file_annotation_names

File? snpeff_db
String? snpeff_db_identifier

File? interval_list

Expand Down Expand Up @@ -369,7 +370,8 @@ workflow SRJointCallGVCFsWithGenomicsDB {
call FUNK.FunctionallyAnnotateVariants as FunctionallyAnnotate {
input:
vcf = recalibrated_vcf,
snpeff_db = select_first([snpeff_db])
snpeff_db = select_first([snpeff_db]),
snpeff_db_identifier = select_first([snpeff_db_identifier])
}
}

Expand Down
4 changes: 3 additions & 1 deletion wdl/tasks/TertiaryAnalysis/FunctionalAnnotation.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ task FunctionallyAnnotateVariants {
File vcf
File snpeff_db

String snpeff_db_identifier

RuntimeAttr? runtime_attr_override
}
Expand All @@ -21,7 +23,7 @@ task FunctionallyAnnotateVariants {
/snpEff/scripts/snpEff ann -v \
-c $PWD/snpeff_db/snpEff.config \
-dataDir $PWD/snpeff_db/data \
PlasmoDB-61_Pfalciparum3D7_Genome \
~{snpeff_db_identifier} \
~{vcf} | bgzip > ~{prefix}.annotated.vcf.gz
mv snpEff_summary.html ~{prefix}.snpEff_summary.html
Expand Down

0 comments on commit b169a39

Please sign in to comment.