Skip to content
Snippets Groups Projects
macs2.wdl 557 B
Newer Older
Moustakas's avatar
Moustakas committed
task PeakCalling {
    String? preCommand
    Array[File] bamFiles
    String outDir
    String sampleName
    Int? threads
    Int? memory

    command {
        set -e -o pipefail
        ${preCommand}
        macs2 callpeaks \
        --treatment ${sep = ' ' bamFiles} \
        --outdir ${outDir} \
        --name ${sampleName}
Moustakas's avatar
Moustakas committed
        File peakFile = outDir + "/" + sampleName + "/macs2/" + sampleName + "_peaks.narrowPeak"
    }

    runtime {
        cpu: select_first([threads,1])
        memory: select_first([memory,8])
    }
}