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

spades to 1.0

parent 8c40b9e5
No related branches found
No related tags found
1 merge request!34Move all files to version 1.0
version 1.0
task spades { task spades {
String outputDir input {
String? preCommand String outputDir
File read1 String? preCommand
File? read2 File read1
File? interlacedReads File? read2
File? sangerReads File? interlacedReads
File? pacbioReads File? sangerReads
File? nanoporeReads File? pacbioReads
File? tslrContigs File? nanoporeReads
File? trustedContigs File? tslrContigs
File? untrustedContigs File? trustedContigs
Boolean? singleCell File? untrustedContigs
Boolean? metagenomic Boolean? singleCell
Boolean? rna Boolean? metagenomic
Boolean? plasmid Boolean? rna
Boolean? ionTorrent Boolean? plasmid
Boolean? onlyErrorCorrection Boolean? ionTorrent
Boolean? onlyAssembler Boolean? onlyErrorCorrection
Boolean? careful Boolean? onlyAssembler
Boolean? disableGzipOutput Boolean? careful
Boolean? disableRepeatResolution Boolean? disableGzipOutput
File? dataset Boolean? disableRepeatResolution
Int? threads File? dataset
Float? memoryGb Int? threads
File? tmpDir Float? memoryGb
String? k File? tmpDir
Float? covCutoff String? k
Int? phredOffset Float? covCutoff
Int? phredOffset
}
Int finalThreads = select_first([threads,1]) Int finalThreads = select_first([threads,1])
Float totalMemory = select_first([memoryGb, finalThreads * 16.0]) Float totalMemory = select_first([memoryGb, finalThreads * 16.0])
Int finalMemory = ceil(totalMemory) Int finalMemory = ceil(totalMemory)
...@@ -34,34 +38,34 @@ task spades { ...@@ -34,34 +38,34 @@ task spades {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ~{preCommand}
spades.py \ spades.py \
${"-o " + outputDir} \ ~{"-o " + outputDir} \
${true="--sc" false="" singleCell} \ ~{true="--sc" false="" singleCell} \
${true="--meta" false="" metagenomic} \ ~{true="--meta" false="" metagenomic} \
${true="--rna" false="" rna} \ ~{true="--rna" false="" rna} \
${true="--plasmid" false="" plasmid} \ ~{true="--plasmid" false="" plasmid} \
${true="--iontorrent" false="" ionTorrent} \ ~{true="--iontorrent" false="" ionTorrent} \
${"--12 " + interlacedReads } \ ~{"--12 " + interlacedReads } \
${true="-1" false="-s" defined(read2)} ${read1} \ ~{true="-1" false="-s" defined(read2)} ~{read1} \
${"-2 " + read2 } \ ~{"-2 " + read2 } \
${"--sanger " + sangerReads } \ ~{"--sanger " + sangerReads } \
${"--pacbio " + pacbioReads } \ ~{"--pacbio " + pacbioReads } \
${"--nanopore " + nanoporeReads } \ ~{"--nanopore " + nanoporeReads } \
${"--tslr " + tslrContigs } \ ~{"--tslr " + tslrContigs } \
${"--trusted-contigs " + trustedContigs } \ ~{"--trusted-contigs " + trustedContigs } \
${"--untrusted-contigs " + untrustedContigs } \ ~{"--untrusted-contigs " + untrustedContigs } \
${true="--only-error-correction" false="" onlyErrorCorrection } \ ~{true="--only-error-correction" false="" onlyErrorCorrection } \
${true="--only-assembler" false="" onlyAssembler } \ ~{true="--only-assembler" false="" onlyAssembler } \
${true="--careful" false="" careful } \ ~{true="--careful" false="" careful } \
${true="--disable-gzip-output" false="" disableGzipOutput} \ ~{true="--disable-gzip-output" false="" disableGzipOutput} \
${true="--disable-rr" false="" disableRepeatResolution } \ ~{true="--disable-rr" false="" disableRepeatResolution } \
${"--dataset " + dataset } \ ~{"--dataset " + dataset } \
${"--threads " + finalThreads} \ ~{"--threads " + finalThreads} \
${"--memory " + finalMemory } \ ~{"--memory " + finalMemory } \
${"-k " + k } \ ~{"-k " + k } \
${"--cov-cutoff " + covCutoff } \ ~{"--cov-cutoff " + covCutoff } \
${"--phred-offset " + phredOffset } ~{"--phred-offset " + phredOffset }
} }
output { output {
Array[File] correctedReads = glob(outputDir + "/corrected/*.fastq*") Array[File] correctedReads = glob(outputDir + "/corrected/*.fastq*")
......
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