Skip to content
Snippets Groups Projects
Commit 9a082726 authored by Cats's avatar Cats
Browse files

add GatherVcfs

parent 59915292
No related branches found
No related tags found
1 merge request!70Some new tasks and memory setting changes
......@@ -240,6 +240,40 @@ task GatherBamFiles {
}
}
task GatherVcfs {
input {
String? preCommand
Array[File]+ inputVcfs
Array[File]+ inputVcfIndexes
String outputVcfPath
String? picardJar
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} \
GatherVcfs \
INPUT=~{sep=' INPUT=' inputVcfs} \
OUTPUT=~{outputVcfPath}
}
output {
File outputVcf = outputVcfPath
}
runtime {
memory: ceil(memory * memoryMultiplier)
}
}
# Mark duplicate reads to avoid counting non-independent observations
task MarkDuplicates {
input {
......
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