forked from biowdl/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacs2.wdl
More file actions
36 lines (31 loc) · 836 Bytes
/
Copy pathmacs2.wdl
File metadata and controls
36 lines (31 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version 1.0
task PeakCalling {
input {
Array[File]+ inputBams
Array[File]+ inputBamsIndex
Array[File]+? controlBams
Array[File]+? controlBamsIndex
String outDir
String sampleName
Boolean nomodel = false
Int threads = 1
Int memory = 8
}
command {
set -e
macs2 callpeak \
--treatment ~{sep = ' ' inputBams} \
~{true="--control" false="" defined(controlBams)} ~{sep = ' ' controlBams} \
--outdir ~{outDir} \
--name ~{sampleName} \
~{true='--nomodel' false='' nomodel}
}
output {
File peakFile = outDir + "/" + sampleName + "_peaks.narrowPeak"
}
runtime {
cpu: threads
memory: memory
docker: "quay.io/biocontainers/macs2:2.1.2--py27r351_0"
}
}