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

Merge pull request #21 from biowdl/BIOWDL-35

Added seqstat, set minlength for cutadapt to 1. 
parents dd862229 9253f307
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
task BaseCounter { task BaseCounter {
String? preCommand String? preCommand
String? toolJar File? toolJar
File bam File bam
File bamIndex File bamIndex
File refFlat File refFlat
...@@ -72,7 +72,7 @@ task BaseCounter { ...@@ -72,7 +72,7 @@ task BaseCounter {
} }
task ExtractAdaptersFastqc { task ExtractAdaptersFastqc {
String? toolJar File? toolJar
File inputFile File inputFile
String outputDir String outputDir
String? adapterOutputFilePath = outputDir + "/adapter.list" String? adapterOutputFilePath = outputDir + "/adapter.list"
...@@ -122,7 +122,7 @@ task FastqSplitter { ...@@ -122,7 +122,7 @@ task FastqSplitter {
String? preCommand String? preCommand
File inputFastq File inputFastq
Array[String] outputPaths Array[String] outputPaths
String? toolJar File? toolJar
Float? memory Float? memory
Float? memoryMultiplier Float? memoryMultiplier
...@@ -162,7 +162,7 @@ task FastqSync { ...@@ -162,7 +162,7 @@ task FastqSync {
File in2 File in2
String out1path String out1path
String out2path String out2path
String? toolJar File? toolJar
Float? memory Float? memory
Float? memoryMultiplier Float? memoryMultiplier
...@@ -196,7 +196,7 @@ task FastqSync { ...@@ -196,7 +196,7 @@ task FastqSync {
} }
task SampleConfig { task SampleConfig {
String? toolJar File? toolJar
String? preCommand String? preCommand
Array[File]+ inputFiles Array[File]+ inputFiles
String keyFilePath String keyFilePath
...@@ -244,7 +244,7 @@ task ScatterRegions { ...@@ -244,7 +244,7 @@ task ScatterRegions {
File refFasta File refFasta
File refDict File refDict
String outputDirPath String outputDirPath
String? toolJar File? toolJar
Int? scatterSize Int? scatterSize
File? regions File? regions
...@@ -276,3 +276,32 @@ task ScatterRegions { ...@@ -276,3 +276,32 @@ task ScatterRegions {
} }
} }
task Seqstat {
String? preCommand
File? toolJar
File fastq
String outputFile
Float? memory
Float? memoryMultiplier
Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " + toolJar
else "biopet-seqstat -Xmx" + mem + "G"
command {
set -e -o pipefail
${preCommand}
mkdir -p $(dirname ${outputFile})
${toolCommand} \
--fastq ${fastq} \
--output ${outputFile}
}
output {
File json = outputFile
}
runtime {
memory: ceil(mem * select_first([memoryMultiplier, 2.0]))
}
}
...@@ -33,7 +33,7 @@ task cutadapt { ...@@ -33,7 +33,7 @@ task cutadapt {
String? stripSuffix String? stripSuffix
String? prefix String? prefix
String? suffix String? suffix
Int? minimumLength Int? minimumLength = 1 # Necessary to prevent creation of empty reads
Int? maximumLength Int? maximumLength
Int? maxN Int? maxN
Boolean? discardTrimmed Boolean? discardTrimmed
......
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