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

add seqstat generate

parent 33e9f85f
No related branches found
No related tags found
1 merge request!53Add seqstat generate. ValidateFastq now validates files.
This commit is part of merge request !53. Comments created here will be created in the context of that merge request.
task Generate {
input {
String? preCommand
File? toolJar
File fastqR1
File fastqR2
String outputFile
String? sample
String? library
String? readgroup
Int memory = 4
Float memoryMultiplier = 2.0
}
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-seqstat -Xmx" + memory + "G"
command {
set -e -o pipefail
~{preCommand}
mkdir -p $(dirname ~{outputFile})
~{toolCommand} \
--fastqR1 ~{fastqR1} \
--fastqR2 ~{fastqR2} \
--output ~{outputFile} \
~{"--sample " + sample} \
~{"--library " + library } \
~{"--readgroup " + readgroup }
}
output {
File json = outputFile
}
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.
Please register or to comment