Skip to content

Commit 8f9efd9

Browse files
committed
Removing teh sort that I added because it's not needed.
1 parent 9efa7ec commit 8f9efd9

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

wdl/pipelines/Z_One_Off_Analyses/SRJointCallGVCFsWithGenomicsDB_Pf_Niare_VETS.wdl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ workflow SRJointCallGVCFsWithGenomicsDB_Pf_Niare_VETS {
140140
input:
141141
input_vcfs = GenotypeGVCFs.output_vcf,
142142
input_vcf_indices = GenotypeGVCFs.output_vcf_index,
143-
sort_input_vcfs = true,
144143
prefix = prefix + "." + contig + ".raw.merged",
145144
}
146145

wdl/tasks/Utility/VariantUtils.wdl

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,8 +1352,6 @@ task GatherVcfs {
13521352
Array[File] input_vcf_indices
13531353
String prefix
13541354

1355-
Boolean sort_input_vcfs = false
1356-
13571355
RuntimeAttr? runtime_attr_override
13581356
}
13591357

@@ -1368,25 +1366,13 @@ task GatherVcfs {
13681366
command <<<
13691367
set -euxo pipefail
13701368
1371-
# Sometimes because of how WDL is executed, some VCFs won't be in the right order.
1372-
# If we assume that the shards are in the right order, we can sort the VCF paths and
1373-
# pass them in via an arguments file.
1374-
INPUT_VCF_ARG_FILE=input_vcf_arg_file.txt
1375-
if ~{sort_input_vcfs}; then
1376-
f=~{write_lines(input_vcfs)}
1377-
cat $f | sort | sed 's/^/--input /g' > ${INPUT_VCF_ARG_FILE}
1378-
else
1379-
f=~{write_lines(input_vcfs)}
1380-
cat $f | sed 's/^/--input /g' > ${INPUT_VCF_ARG_FILE}
1381-
fi
1382-
13831369
# --ignore-safety-checks makes a big performance difference so we include it in our invocation.
13841370
# This argument disables expensive checks that the file headers contain the same set of
13851371
# genotyped samples and that files are in order by position of first record.
13861372
gatk --java-options "-Xms6000m -Xmx6500m" \
13871373
GatherVcfsCloud \
13881374
--ignore-safety-checks \
1389-
--arguments_file ${INPUT_VCF_ARG_FILE} \
1375+
--input ~{sep=" --input " input_vcfs} \
13901376
--output ~{prefix}.vcf.gz
13911377
13921378
tabix -p vcf ~{prefix}.vcf.gz

0 commit comments

Comments
 (0)