Skip to content
Snippets Groups Projects
Commit 61c37d6e authored by António Paulo's avatar António Paulo
Browse files

add GATK MergeStats as a task

parent a6f81d20
No related branches found
No related tags found
No related merge requests found
...@@ -264,6 +264,7 @@ task MuTect2 { ...@@ -264,6 +264,7 @@ task MuTect2 {
File? panelOfNormalsIndex File? panelOfNormalsIndex
String? f1r2TarGz = "f1r2.tar.gz" String? f1r2TarGz = "f1r2.tar.gz"
Array[File]+ intervals Array[File]+ intervals
String outputStats = outputVcf + ".stats"
Int memory = 4 Int memory = 4
Float memoryMultiplier = 3 Float memoryMultiplier = 3
...@@ -290,6 +291,7 @@ task MuTect2 { ...@@ -290,6 +291,7 @@ task MuTect2 {
File vcfFile = outputVcf File vcfFile = outputVcf
File vcfFileIndex = outputVcf + ".tbi" File vcfFileIndex = outputVcf + ".tbi"
File f1r2File = f1r2TarGz File f1r2File = f1r2TarGz
File stats = outputStats
} }
runtime { runtime {
...@@ -326,6 +328,33 @@ task LearnReadOrientationModel { ...@@ -326,6 +328,33 @@ task LearnReadOrientationModel {
} }
} }
task MergeStats {
input {
Array[File]+ stats
Int memory = 2
Float memoryMultiplier = 1.5
String dockerImage = "quay.io/biocontainers/gatk4:4.1.2.0--1"
}
command {
set -e
gatk --java-options -Xmx~{memory}G \
MergeMutectStats \
-stats ~{sep=" -stats " stats} \
-O "merged.stats"
}
output {
File mergedStats = "merged.stats"
}
runtime {
docker: dockerImage
memory: ceil(memory * memoryMultiplier)
}
}
task SplitNCigarReads { task SplitNCigarReads {
input { input {
File inputBam File inputBam
......
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