Skip to content
Snippets Groups Projects
Unverified Commit aebf426f authored by Peter van 't Hof's avatar Peter van 't Hof Committed by GitHub
Browse files

Merge pull request #12 from biowdl/flash

Adding flash task for combining overlapping reads
parents 61bba4a0 d4219066
No related branches found
No related tags found
No related merge requests found
task flash {
String? preCommand
File inputR1
File inputR2
String outdirPath
String? outPrefix = "flash"
Int? minOverlap
Int? maxOverlap
Boolean? compress = true
Int? threads
Int? memory
command {
set -e -o pipefail
mkdir -p ${outdirPath}
${preCommand}
flash \
${"--threads=" + threads} \
${"--output-directory=" + outdirPath} \
${"--output-prefix=" + outPrefix} \
${true="--compress " false="" defined(compress)} \
${"--min-overlap=" + minOverlap} \
${"--max-overlap=" + maxOverlap} \
${inputR1} ${inputR2}
}
output {
File extendedFrags = outdirPath + "/" + outPrefix + ".extendedFrags.fastq.gz"
File notCombined1 = outdirPath + "/" + outPrefix + ".notCombined_1.fastq.gz"
File notCombined2 = outdirPath + "/" + outPrefix + ".notCombined_2.fastq.gz"
File hist = outdirPath + "/" + outPrefix + ".hist"
File histogram = outdirPath + "/" + outPrefix + ".histogram"
}
runtime {
cpu: select_first([threads, 2])
memory: select_first([memory, 2])
}
}
\ 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