Skip to content
Snippets Groups Projects
Unverified Commit af7dc0fb authored by Ruben Vorderman's avatar Ruben Vorderman Committed by GitHub
Browse files

Merge pull request #135 from Amfgcp/shark-fixes

Update default memory values and CombineVariants to run in Shark
parents 997e6562 afff0372
No related branches found
No related tags found
No related merge requests found
......@@ -304,8 +304,8 @@ task LearnReadOrientationModel {
input {
Array[File]+ f1r2TarGz
Int memory = 8
Float memoryMultiplier = 1.5
Int memory = 12
Float memoryMultiplier = 2
String dockerImage = "quay.io/biocontainers/gatk4:4.1.2.0--1"
}
......@@ -364,8 +364,8 @@ task GetPileupSummaries {
File sitesForContaminationIndex
String outputPrefix
Int memory = 4
Float memoryMultiplier = 1.5
Int memory = 12
Float memoryMultiplier = 2
String dockerImage = "quay.io/biocontainers/gatk4:4.1.2.0--1"
}
......@@ -394,8 +394,8 @@ task CalculateContamination {
File tumorPileups
File? normalPileups
Int memory = 4
Float memoryMultiplier = 1.5
Int memory = 12
Float memoryMultiplier = 2
String dockerImage = "quay.io/biocontainers/gatk4:4.1.2.0--1"
}
......@@ -435,8 +435,8 @@ task FilterMutectCalls {
File mutect2Stats
String? extraArgs
Int memory = 8
Float memoryMultiplier = 1.5
Int memory = 12
Float memoryMultiplier = 2
String dockerImage = "quay.io/biocontainers/gatk4:4.1.2.0--1"
}
......@@ -521,16 +521,19 @@ task CombineVariants {
Array[File]+ variantIndexes
String outputPath
Int memory = 4
Float memoryMultiplier = 1.5
Int memory = 12
Float memoryMultiplier = 2
String dockerImage = "broadinstitute/gatk3:3.8-1"
}
command <<<
set -e -o pipefail
set -e
mkdir -p $(dirname "~{outputPath}")
# build "-V:<ID> <file.vcf>" arguments according to IDs and VCFs to merge
# Make sure commands are run in bash
bash -c '#!/usr/bin/env bash
set -eux
ids=(~{sep=" " identifiers})
vars=(~{sep=" " variantVcfs})
V_args=$(
......@@ -539,7 +542,6 @@ task CombineVariants {
printf -- "-V:%s %s " "${ids[i]}" "${vars[i]}"
done
)
java -Xmx~{memory}G -jar ~{installDir}/GenomeAnalysisTK.jar \
-T CombineVariants \
-R ~{referenceFasta} \
......@@ -547,6 +549,7 @@ task CombineVariants {
--filteredrecordsmergetype ~{filteredRecordsMergeType} \
--out ~{outputPath} \
$V_args
'
>>>
output {
......
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