Skip to content

Commit

Permalink
Sort vcf after SVConcordance
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalker174 committed Dec 14, 2023
1 parent 7607a32 commit 4881329
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inputs/values/dockers.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dockers",
"cnmops_docker": "us.gcr.io/broad-dsde-methods/gatk-sv/cnmops:2023-07-28-v0.28.1-beta-e70dfbd7",
"condense_counts_docker": "us.gcr.io/broad-dsde-methods/tsharpe/gatk:4.2.6.1-57-g9e03432",
"gatk_docker": "us.gcr.io/broad-dsde-methods/markw/gatk:2023-07-13-4.4.0.0-43-gd79823f9c-NIGHTLY-SNAPSHOT",
"gatk_docker": "us.gcr.io/broad-dsde-methods/markw/gatk:mw-sv-concordance-opt-1097258",
"gatk_docker_pesr_override": "us.gcr.io/broad-dsde-methods/tsharpe/gatk:4.2.6.1-57-g9e03432",
"genomes_in_the_cloud_docker": "us.gcr.io/broad-gotc-prod/genomes-in-the-cloud:2.3.2-1510681135",
"linux_docker": "marketplace.gcr.io/google/ubuntu1804",
Expand Down
9 changes: 7 additions & 2 deletions wdl/SVConcordance.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ task SVConcordanceTask {
RuntimeAttr default_attr = object {
cpu_cores: 1,
mem_gb: 16,
disk_gb: ceil(10 + size(eval_vcf, "GB") * 2 + size(truth_vcf, "GB")),
disk_gb: ceil(10 + size(eval_vcf, "GB") * 4 + size(truth_vcf, "GB")),
boot_disk_gb: 10,
preemptible_tries: 3,
max_retries: 1
Expand Down Expand Up @@ -113,8 +113,13 @@ task SVConcordanceTask {
--sequence-dictionary ~{reference_dict} \
--eval ~{eval_vcf} \
--truth ~{truth_vcf} \
-O ~{output_prefix}.vcf.gz \
-O unsorted.vcf.gz \
--do-not-sort \
~{additional_args}

mkdir tmp
bcftools sort --max-mem ${JVM_MAX_MEM}M -T tmp -Oz -o ~{output_prefix}.vcf.gz unsorted.vcf.gz
tabix ~{output_prefix}.vcf.gz
>>>
runtime {
cpu: select_first([runtime_attr.cpu_cores, default_attr.cpu_cores])
Expand Down

0 comments on commit 4881329

Please sign in to comment.