Skip to content
Snippets Groups Projects
Commit 9f02ca5a authored by ffinfo's avatar ffinfo
Browse files

Fixing validate issues

parent 0d3ab44c
No related branches found
No related tags found
1 merge request!61Switch to structs
...@@ -5,7 +5,8 @@ import "common.wdl" ...@@ -5,7 +5,8 @@ import "common.wdl"
task HTSeqCount { task HTSeqCount {
input { input {
String? preCommand String? preCommand
Array[IndexedBamFile] inputBamFiles Array[File]+ inputBams
Array[File]+ inputBamsIndex
File gtfFile File gtfFile
String outputTable String outputTable
String format = "bam" String format = "bam"
...@@ -23,7 +24,7 @@ task HTSeqCount { ...@@ -23,7 +24,7 @@ task HTSeqCount {
-f ~{format} \ -f ~{format} \
-r ~{order} \ -r ~{order} \
-s ~{stranded} \ -s ~{stranded} \
~{sep=" " inputBamFiles.file} \ ~{sep=" " inputBams} \
~{gtfFile} \ ~{gtfFile} \
> ~{outputTable} > ~{outputTable}
} }
......
...@@ -5,7 +5,8 @@ import "common.wdl" ...@@ -5,7 +5,8 @@ import "common.wdl"
task PeakCalling { task PeakCalling {
input { input {
String? preCommand String? preCommand
Array[IndexedBamFile] bamFiles Array[File]+ inputBams
Array[File]+ inputBamsIndex
String outDir String outDir
String sampleName String sampleName
Int threads = 1 Int threads = 1
...@@ -17,7 +18,7 @@ task PeakCalling { ...@@ -17,7 +18,7 @@ task PeakCalling {
set -e -o pipefail set -e -o pipefail
~{preCommand} ~{preCommand}
macs2 callpeak \ macs2 callpeak \
--treatment ~{sep = ' ' bamFiles.file} \ --treatment ~{sep = ' ' inputBams} \
--outdir ~{outDir} \ --outdir ~{outDir} \
--name ~{sampleName} \ --name ~{sampleName} \
~{true='--nomodel' false='' nomodel} ~{true='--nomodel' false='' nomodel}
......
...@@ -19,11 +19,13 @@ task ConfigureSomatic { ...@@ -19,11 +19,13 @@ task ConfigureSomatic {
then installDir + "bin/configMata.py" then installDir + "bin/configMata.py"
else "configManta.py" else "configManta.py"
String normalArg = if (defined(normalBam)) then "--normalBam " + select_first([normalBam]).file else ""
command { command {
set -e -o pipefail set -e -o pipefail
~{preCommand} ~{preCommand}
~{toolCommand} \ ~{toolCommand} \
~{"--normalBam " + normalBam.file} \ ~{normalArg} \
~{"--tumorBam " + tumorBam.file} \ ~{"--tumorBam " + tumorBam.file} \
--referenceFasta ~{reference.fasta} \ --referenceFasta ~{reference.fasta} \
~{"--callRegions " + callRegions} \ ~{"--callRegions " + callRegions} \
......
...@@ -25,6 +25,8 @@ task VarDict { ...@@ -25,6 +25,8 @@ task VarDict {
Float memoryMultiplier = 2.0 Float memoryMultiplier = 2.0
} }
String normalArg = if (defined(normalBam)) then "|" + select_first([normalBam]).file else ""
String toolCommand = if defined(installDir) String toolCommand = if defined(installDir)
then installDir + "/VarDict" then installDir + "/VarDict"
else if useJavaVersion else if useJavaVersion
...@@ -38,7 +40,7 @@ task VarDict { ...@@ -38,7 +40,7 @@ task VarDict {
~{toolCommand} \ ~{toolCommand} \
-G ~{reference.fasta} \ -G ~{reference.fasta} \
-N ~{tumorSampleName} \ -N ~{tumorSampleName} \
-b "~{tumorBam.file}~{"|" + normalBam.file}" \ -b "~{tumorBam.file}~{normalArg}" \
~{true="" false="-z" defined(normalBam)} \ ~{true="" false="-z" defined(normalBam)} \
-c ~{chromosomeColumn} \ -c ~{chromosomeColumn} \
-S ~{startColumn} \ -S ~{startColumn} \
......
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