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

simplify BaseRecalibrator task

parent 9a200418
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,8 @@ task BaseRecalibrator {
File inputBamIndex
String recalibrationReportPath
Array[File] sequenceGroupInterval = []
Array[File]? knownIndelsSitesVCFs
Array[File]? knownIndelsSitesVCFIndexes
Array[File] knownIndelsSitesVCFs = []
Array[File] knownIndelsSitesVCFIndexes = []
File? dbsnpVCF
File? dbsnpVCFIndex
File referenceFasta
......@@ -67,11 +67,6 @@ task BaseRecalibrator {
String dockerImage = "quay.io/biocontainers/gatk4:4.1.0.0--0"
}
Array[File]+ knownIndelsSitesVCFsArg = flatten([
select_first([knownIndelsSitesVCFs, []]),
[select_first([dbsnpVCF])]
])
command {
set -e
mkdir -p $(dirname ~{recalibrationReportPath})
......@@ -81,7 +76,8 @@ task BaseRecalibrator {
-I ~{inputBam} \
--use-original-qualities \
-O ~{recalibrationReportPath} \
--known-sites ~{sep=" --known-sites " knownIndelsSitesVCFsArg} \
~{true="--known-sites" false="" length(knownIndelsSitesVCFs) > 0} ~{sep=" --known-sites " knownIndelsSitesVCFs} \
~{"--known-sites " + dbsnpVCF} \
~{true="-L" false="" length(sequenceGroupInterval) > 0} ~{sep=' -L ' sequenceGroupInterval}
}
......
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