Skip to content

Commit 0b8f392

Browse files
committed
FilterIntervals now outputs some additional information on masking, but they are optional outputs.
1 parent 2d37646 commit 0b8f392

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

wdl/tasks/Utility/cnv_common_tasks.wdl

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ task AnnotateIntervals {
8181

8282
Int machine_mem_mb = select_first([mem_gb, 2]) * 1000
8383
Int command_mem_mb = machine_mem_mb - 500
84-
84+
8585
# Determine output filename
8686
String base_filename = basename(intervals, ".interval_list")
8787

@@ -142,7 +142,7 @@ task FilterIntervals {
142142

143143
Int machine_mem_mb = select_first([mem_gb, 7]) * 1000
144144
Int command_mem_mb = machine_mem_mb - 500
145-
145+
146146
# Determine output filename
147147
String base_filename = basename(intervals, ".interval_list")
148148

@@ -168,6 +168,9 @@ task FilterIntervals {
168168
--extreme-count-filter-percentage-of-samples ~{default="90.0" extreme_count_filter_percentage_of_samples} \
169169
--interval-merging-rule OVERLAPPING_ONLY \
170170
--output ~{base_filename}.filtered.interval_list
171+
172+
find . -name "*.interval_list"
173+
find . -name "*.txt"
171174
>>>
172175

173176
runtime {
@@ -180,6 +183,12 @@ task FilterIntervals {
180183

181184
output {
182185
File filtered_intervals = "~{base_filename}.filtered.interval_list"
186+
187+
File? resolved_input_intervals = "~{base_filename}.filtered.input-resolved.interval_list"
188+
189+
File? filtered_away_by_gc = "~{base_filename}.filtered.0.GC-away.txt"
190+
File? filtered_away_by_mappability = "~{base_filename}.filtered.1.Mappability-away.txt"
191+
File? filtered_away_by_segdup = "~{base_filename}.filtered.2.SegDup-away.txt"
183192
}
184193
}
185194

@@ -540,7 +549,7 @@ task CollectSampleQualityMetrics {
540549
NUM_SEGMENTS=$(gunzip -c ~{genotyped_segments_vcf} | grep -v '#' | wc -l)
541550
if [ $NUM_SEGMENTS -lt ~{maximum_number_events} ]; then
542551
echo "PASS" >> ~{entity_id}.qcStatus.txt
543-
else
552+
else
544553
echo "EXCESSIVE_NUMBER_OF_EVENTS" >> ~{entity_id}.qcStatus.txt
545554
fi
546555
>>>
@@ -575,7 +584,7 @@ task CollectModelQualityMetrics {
575584
Int machine_mem_mb = select_first([mem_gb, 1]) * 1000
576585

577586
command <<<
578-
sed -e
587+
sed -e
579588
qc_status="PASS"
580589
581590
gcnv_model_tar_array=(~{sep=" " gcnv_model_tars})

0 commit comments

Comments
 (0)