Skip to content
Snippets Groups Projects
Unverified Commit 3c6d6383 authored by Cedrick Agaser's avatar Cedrick Agaser Committed by GitHub
Browse files

Merge pull request #257 from biowdl/bcftools_add_tmp

bcftools: add tmpDir input to specify temporary directory when sorting.
parents e9d123a9 72ad1f1b
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ that users understand how the changes affect the new version.
version 5.0.0-dev
---------------------------
+ bcftools: add tmpDir input to specify temporary directory when sorting.
+ bcftools: remove outputType and implement indexing based on output file extension.
+ NanoPack: Add parameter_meta to NanoPlot task.
+ Centrifuge: Remove metrics file from classification (which causes the
......
......@@ -127,6 +127,7 @@ task Sort {
input {
File inputFile
String outputPath = "output.vcf.gz"
String tmpDir = "./sorting-tmp"
String memory = "256M"
Int timeMinutes = 1 + ceil(size(inputFile, "G"))
String dockerImage = "quay.io/biocontainers/bcftools:1.10.2--h4f4756c_2"
......@@ -136,10 +137,11 @@ task Sort {
command {
set -e
mkdir -p "$(dirname ~{outputPath})"
mkdir -p "$(dirname ~{outputPath})" ~{tmpDir}
bcftools sort \
-o ~{outputPath} \
-O ~{true="z" false="v" compressed} \
-T ~{tmpDir} \
~{inputFile}
~{if compressed then 'bcftools index --tbi ~{outputPath}' else ''}
......@@ -159,6 +161,7 @@ task Sort {
parameter_meta {
inputFile: {description: "A vcf or bcf file.", category: "required"}
outputPath: {description: "The location the output VCF file should be written.", category: "common"}
tmpDir: {description: "The location of the temporary files during the bcftools sorting.", category: "advanced"}
memory: {description: "The amount of memory this job will use.", category: "advanced"}
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment