Skip to content

Commit 814f7d6

Browse files
committed
draft gather_sample_evidence.sh
1 parent 4ac89be commit 814f7d6

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
# ./gather_sample_evidence.sh test NA12878.final.cram NA12878.final.cram.crai Homo_sapiens_assembly38.fasta Homo_sapiens_assembly38.fasta.fai Homo_sapiens_assembly38.dict primary_contigs.list preprocessed_intervals.interval_list
4+
5+
set -Eeuo pipefail
6+
7+
sample_id=${1}
8+
bam_or_cram_file=${2}
9+
bam_or_cram_index=${3}
10+
reference_fasta=${4}
11+
reference_index=${5}
12+
reference_dict=${6}
13+
primary_contigs_list=${7}
14+
preprocessed_intervals=${8}
15+
disabled_read_filters=${9:-"MappingQualityReadFilter"}
16+
collect_coverage=${10:-true}
17+
run_scramble=${11:-true}
18+
19+
20+
if [[ "${collect_coverage}" == true || "${run_scramble}" == true ]]; then
21+
# Collects read counts at specified intervals.
22+
# The count for each interval is calculated by counting the number of
23+
# read starts that lie in the interval.
24+
./collect_counts.sh \
25+
"${preprocessed_intervals}" \
26+
"${bam_or_cram_file}" \
27+
"${bam_or_cram_index}" \
28+
"${sample_id}" \
29+
"${reference_fasta}" \
30+
"${reference_index}" \
31+
"${reference_dict}" \
32+
"/root/gatk.jar" \
33+
"${disabled_read_filters}"
34+
fi
35+

wdl/GatherSampleEvidence.wdl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ workflow GatherSampleEvidence {
179179
}
180180
}
181181
182+
# ------------- done
182183
if (run_manta) {
183184
call manta.Manta {
184185
input:
@@ -243,6 +244,7 @@ workflow GatherSampleEvidence {
243244
}
244245
245246
if (run_scramble) {
247+
# condition not clear, it needs to run on this specific version only, or this and newer, or this and older?
246248
if (!defined(is_dragen_3_7_8)) {
247249
# check if the reads were aligned with dragen 3.7.8
248250
call CheckAligner {

0 commit comments

Comments
 (0)