Skip to content
Snippets Groups Projects
macs2.wdl 650 B
Newer Older
version 1.0
Moustakas's avatar
Moustakas committed
task PeakCalling {
    input {
        String? preCommand
ffinfo's avatar
ffinfo committed
        Array[IndexedBamFile] bamFiles
        String outDir
        String sampleName
        Int threads = 1
        Int memory = 8
        Boolean nomodel = false

    command {
        set -e -o pipefail
        ~{preCommand}
Moustakas's avatar
Moustakas committed
        macs2 callpeak \
ffinfo's avatar
ffinfo committed
        --treatment ~{sep = ' ' bamFiles.file} \
        --outdir ~{outDir} \
        --name ~{sampleName} \
        ~{true='--nomodel' false='' nomodel}
Moustakas's avatar
Moustakas committed
        File peakFile = outDir + "/" + sampleName + "_peaks.narrowPeak"
        cpu: threads
        memory: memory