Skip to content
Snippets Groups Projects
Commit 639b5ed3 authored by Cats's avatar Cats
Browse files

add SortVcf task

parent b71a1496
No related branches found
No related tags found
1 merge request!43fix somatic tasks and add supporting tasks
......@@ -378,3 +378,38 @@ task ScatterIntervalList {
memory: ceil(memory * memoryMultiplier)
}
}
task SortVcf {
input {
String? preCommand
String? picardJar
Array[File]+ vcfFiles
String outputVcf
Int memory = 4
Float memoryMultiplier = 3.0
}
String toolCommand = if defined(picardJar)
then "java -Xmx" + memory + "G -jar " + picardJar
else "picard -Xmx" + memory + "G"
command {
set -e -o pipefail
~{preCommand}
~{toolCommand} \
SortVcf \
I=~{sep=" I=" vcfFiles} \
O=outputVcf
}
output {
File vcfFile = outputVcf
File vcfIndex = outputVcf + ".tbi"
}
runtime {
memory: ceil(memory * memoryMultiplier)
}
}
\ No newline at end of file
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