Skip to content

Commit

Permalink
Updated AnnotateIntervals task and calls in WDL (untested).
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelklee committed Sep 7, 2018
1 parent 7c859e1 commit 73f5409
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/cnv_wdl/cnv_common_tasks.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ task AnnotateIntervals {
File ref_fasta
File ref_fasta_fai
File ref_fasta_dict
File? mappability_track
File? segmental_duplication_track
Int? feature_query_lookahead
File? gatk4_jar_override

# Runtime parameters
Expand All @@ -76,6 +79,9 @@ task AnnotateIntervals {
gatk --java-options "-Xmx${command_mem_mb}m" AnnotateIntervals \
-L ${intervals} \
--reference ${ref_fasta} \
${"--mappability-track " + mappability_track} \
${"--segmental-duplication-track " + segmental_duplication_track} \
--feature-query-lookahead ${default=1000000 feature_query_lookahead} \
--interval-merging-rule OVERLAPPING_ONLY \
--output annotated_intervals.tsv
>>>
Expand Down
12 changes: 12 additions & 0 deletions scripts/cnv_wdl/germline/cnv_germline_cohort_workflow.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ workflow CNVGermlineCohortWorkflow {
Int? padding
Int? bin_length

##################################################
#### optional arguments for AnnotateIntervals ####
##################################################
File? mappability_track
File? segmental_duplication_track
Int? feature_query_lookahead
Int? mem_gb_for_annotate_intervals

##############################################
#### optional arguments for CollectCounts ####
##############################################
Expand Down Expand Up @@ -146,8 +154,12 @@ workflow CNVGermlineCohortWorkflow {
ref_fasta = ref_fasta,
ref_fasta_fai = ref_fasta_fai,
ref_fasta_dict = ref_fasta_dict,
mappability_track = mappability_track,
segmental_duplication_track = segmental_duplication_track,
feature_query_lookahead = feature_query_lookahead,
gatk4_jar_override = gatk4_jar_override,
gatk_docker = gatk_docker,
mem_gb = mem_gb_for_annotate_intervals,
preemptible_attempts = preemptible_attempts
}
}
Expand Down
6 changes: 6 additions & 0 deletions scripts/cnv_wdl/somatic/cnv_somatic_panel_workflow.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ workflow CNVSomaticPanelWorkflow {
##################################################
#### optional arguments for AnnotateIntervals ####
##################################################
File? mappability_track
File? segmental_duplication_track
Int? feature_query_lookahead
Int? mem_gb_for_annotate_intervals

##############################################
Expand Down Expand Up @@ -103,6 +106,9 @@ workflow CNVSomaticPanelWorkflow {
ref_fasta = ref_fasta,
ref_fasta_fai = ref_fasta_fai,
ref_fasta_dict = ref_fasta_dict,
mappability_track = mappability_track,
segmental_duplication_track = segmental_duplication_track,
feature_query_lookahead = feature_query_lookahead,
gatk4_jar_override = gatk4_jar_override,
gatk_docker = gatk_docker,
mem_gb = mem_gb_for_annotate_intervals,
Expand Down

0 comments on commit 73f5409

Please sign in to comment.