Newer
Older
File tumorIndex
String? normalSampleName
File? normalBam
File? normalIndex
File bedFile
String outputVcf
Int chromosomeColumn = 1
Int startColumn = 2
Int endColumn = 3
Int geneColumn = 4
String? preCommand
}
String toolCommand = if defined(installDir)
then installDir + "/VarDict"
else if useJavaVersion
then "vardict-java" #probably needs memory stuff
else "vardict"
command {
set -e -o pipefail
~{preCommand}
~{toolCommand} \
-G ~{refFasta} \
-N ~{tumorSampleName} \
-c ~{chromosomeColumn} \
-S ~{startColumn} \
-E ~{endColumn} \
-g ~{geneColumn} \
~{bedFile} | \
~{installDir + "/"}~{true="testsomatic.R" false="teststrandbias.R" defined(normalBam)} | \
~{installDir + "/"}~{true="var2vcf_paired.pl"
false="var2vcf_valid.pl" defined(normalBam)} \
-N "~{tumorSampleName}~{"|" + normalSampleName}" \
~{true="" false="-E" defined(normalBam)} | \
bgzip -c > ~{outputVcf}