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

add samtools application

parent 910c9ab0
No related branches found
No related tags found
1 merge request!11Changes needed for the iterative assembly pipeline
......@@ -117,3 +117,31 @@ task fastq {
}
}
task view {
String? preCommand
File inFile
File? referenceFasta
String? outputFileName
Boolean? outputBam
Boolean? uncompressedBamOutput
Int? includeFilter
Int? excludeFilter
Int? excludeSpecificFilter
Int? threads
command {
set -e -o pipefail
${preCommand}
samtools view \
${"-T " + referenceFasta} \
${"-o " + outputFileName} \
${true="-b " false="" outputBam} \
${true="-u " false="" uncompressedBamOutput} \
${"-f " + includeFilter} \
${"-F " + excludeFilter} \
${"-G " + excludeSpecificFilter} \
${"--threads " + threads - 1} \
${inFile}
}
}
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