diff --git a/macs2.wdl b/macs2.wdl index 982802f6d33fde3c6eb5024a1262fced21f74382..fd2dd6f9439dabe799b29b8254b09b2f4b6c5780 100644 --- a/macs2.wdl +++ b/macs2.wdl @@ -7,6 +7,8 @@ task PeakCalling { String? preCommand Array[File]+ inputBams Array[File]+ inputBamsIndex + Array[File]? controlBams + Array[File]? controlBamsIndex String outDir String sampleName Int threads = 1 @@ -19,6 +21,7 @@ task PeakCalling { ~{preCommand} macs2 callpeak \ --treatment ~{sep = ' ' inputBams} \ + ~{true="--control" false="" defined(controlBams)} ~{sep = ' ' controlBams} \ --outdir ~{outDir} \ --name ~{sampleName} \ ~{true='--nomodel' false='' nomodel}