Skip to content
Snippets Groups Projects
Commit 2ab6daa9 authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

add bamstats

parent 124bc31a
No related branches found
No related tags found
1 merge request!62Add bamstats
This commit is part of merge request !62. Comments created here will be created in the context of that merge request.
version 1.0
# Copyright Sequencing Analysis Support Core - Leiden University Medical Center 2018
task Generate {
input {
String? preCommand
File? toolJar
File bam
File bamIndex
File? bedFile
Boolean scatterMode = false
Boolean onlyUnmapped = false
Boolean tsvOutputs = false
String outputDir
File? reference
Int memory = 4
Float memoryMultiplier = 2.0
}
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-bamstats -Xmx" + memory + "G"
command {
set -e -o pipefail
~{preCommand}
mkdir -p ~{outputDir}
~{toolCommand} Generate \
--bam ~{bam} \
~{"--bedFile " + bedFile} \
~{"--reference " + reference} \
~{true="--onlyUnmapped" false="" onlyUnmapped} \
~{true="--scatterMode" false="" scatterMode} \
~{true="--tsvOutputs" false="" tsvOutputs}
--outputDir ~{outputDir}
}
output {
File json = outputDir + "/bamstats.json"
File summaryJson = outputDir + "/bamstats.summary.json"
}
runtime {
memory: ceil(memory * memoryMultiplier)
}
}
\ No newline at end of file
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