Skip to content

Commit 309f2ff

Browse files
committed
requester pay stuff
1 parent f38b317 commit 309f2ff

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

wdl/tasks/Utility/BAMutils.wdl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,6 @@ task SubsetBamToLocusLocal {
10411041
interval_list_file: "a Picard-style interval list file to subset reads with"
10421042
interval_id: "an ID string for representing the intervals in the interval list file"
10431043
prefix: "prefix for output bam and bai file names"
1044-
bam: {localization_optional: true}
10451044
}
10461045

10471046
input {
@@ -1059,13 +1058,11 @@ task SubsetBamToLocusLocal {
10591058

10601059
String subset_prefix = prefix + "." + interval_id
10611060

1062-
String local_bam = "/cromwell_root/~{basename(bam)}"
1063-
10641061
command <<<
1065-
set -euxo pipefail
1062+
set -euxo pipefail
10661063
1067-
time gcloud storage cp ~{bam} ~{local_bam}
1068-
mv ~{bai} "~{local_bam}.bai" && touch "~{local_bam}.bai"
1064+
# guard against cases where the bai doesn't follow the naming convension of ".bam.bai"
1065+
if [[ -f "~{bam}.bai" ]]; then mv ~{bai} "~{bam}.bai"; fi
10691066
10701067
# see man page for what '-M' means
10711068
samtools view \
@@ -1074,7 +1071,7 @@ task SubsetBamToLocusLocal {
10741071
-@ 1 \
10751072
--write-index \
10761073
-o "~{subset_prefix}.bam##idx##~{subset_prefix}.bam.bai" \
1077-
~{local_bam} "~{local_bam}.bai" \
1074+
~{bam} "~{bam}.bai" \
10781075
~{sep=" " intervals}
10791076
>>>
10801077

@@ -1092,7 +1089,7 @@ task SubsetBamToLocusLocal {
10921089
disk_gb: disk_size,
10931090
preemptible_tries: 0,
10941091
max_retries: 0,
1095-
docker: "us.gcr.io/broad-dsp-lrma/lr-gcloud-samtools:0.1.3"
1092+
docker: "us.gcr.io/broad-dsp-lrma/lr-gcloud-samtools:0.1.23"
10961093
}
10971094
RuntimeAttr runtime_attr = select_first([runtime_attr_override, default_attr])
10981095
runtime {

wdl/tasks/Utility/Utils.wdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ task ResilientSubsetBam {
17801780
boot_disk_gb: 10,
17811781
preemptible_tries: 2,
17821782
max_retries: 1,
1783-
docker: "us.gcr.io/broad-dsp-lrma/lr-basic:0.1.1"
1783+
docker: "us.gcr.io/broad-dsp-lrma/lr-gcloud-samtools:0.1.23"
17841784
}
17851785
RuntimeAttr runtime_attr = select_first([runtime_attr_override, default_attr])
17861786
runtime {

0 commit comments

Comments
 (0)