Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tasks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
biowdl
tasks
Commits
a77e313b
Commit
a77e313b
authored
6 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
spades to 1.0
parent
8c40b9e5
No related branches found
No related tags found
1 merge request
!34
Move all files to version 1.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spades.wdl
+59
-55
59 additions, 55 deletions
spades.wdl
with
59 additions
and
55 deletions
spades.wdl
+
59
−
55
View file @
a77e313b
version 1.0
task spades {
String outputDir
String? preCommand
File read1
File? read2
File? interlacedReads
File? sangerReads
File? pacbioReads
File? nanoporeReads
File? tslrContigs
File? trustedContigs
File? untrustedContigs
Boolean? singleCell
Boolean? metagenomic
Boolean? rna
Boolean? plasmid
Boolean? ionTorrent
Boolean? onlyErrorCorrection
Boolean? onlyAssembler
Boolean? careful
Boolean? disableGzipOutput
Boolean? disableRepeatResolution
File? dataset
Int? threads
Float? memoryGb
File? tmpDir
String? k
Float? covCutoff
Int? phredOffset
input {
String outputDir
String? preCommand
File read1
File? read2
File? interlacedReads
File? sangerReads
File? pacbioReads
File? nanoporeReads
File? tslrContigs
File? trustedContigs
File? untrustedContigs
Boolean? singleCell
Boolean? metagenomic
Boolean? rna
Boolean? plasmid
Boolean? ionTorrent
Boolean? onlyErrorCorrection
Boolean? onlyAssembler
Boolean? careful
Boolean? disableGzipOutput
Boolean? disableRepeatResolution
File? dataset
Int? threads
Float? memoryGb
File? tmpDir
String? k
Float? covCutoff
Int? phredOffset
}
Int finalThreads = select_first([threads,1])
Float totalMemory = select_first([memoryGb, finalThreads * 16.0])
Int finalMemory = ceil(totalMemory)
...
...
@@ -34,34 +38,34 @@ task spades {
command {
set -e -o pipefail
$
{preCommand}
~
{preCommand}
spades.py \
$
{"-o " + outputDir} \
$
{true="--sc" false="" singleCell} \
$
{true="--meta" false="" metagenomic} \
$
{true="--rna" false="" rna} \
$
{true="--plasmid" false="" plasmid} \
$
{true="--iontorrent" false="" ionTorrent} \
$
{"--12 " + interlacedReads } \
$
{true="-1" false="-s" defined(read2)}
$
{read1} \
$
{"-2 " + read2 } \
$
{"--sanger " + sangerReads } \
$
{"--pacbio " + pacbioReads } \
$
{"--nanopore " + nanoporeReads } \
$
{"--tslr " + tslrContigs } \
$
{"--trusted-contigs " + trustedContigs } \
$
{"--untrusted-contigs " + untrustedContigs } \
$
{true="--only-error-correction" false="" onlyErrorCorrection } \
$
{true="--only-assembler" false="" onlyAssembler } \
$
{true="--careful" false="" careful } \
$
{true="--disable-gzip-output" false="" disableGzipOutput} \
$
{true="--disable-rr" false="" disableRepeatResolution } \
$
{"--dataset " + dataset } \
$
{"--threads " + finalThreads} \
$
{"--memory " + finalMemory } \
$
{"-k " + k } \
$
{"--cov-cutoff " + covCutoff } \
$
{"--phred-offset " + phredOffset }
~
{"-o " + outputDir} \
~
{true="--sc" false="" singleCell} \
~
{true="--meta" false="" metagenomic} \
~
{true="--rna" false="" rna} \
~
{true="--plasmid" false="" plasmid} \
~
{true="--iontorrent" false="" ionTorrent} \
~
{"--12 " + interlacedReads } \
~
{true="-1" false="-s" defined(read2)}
~
{read1} \
~
{"-2 " + read2 } \
~
{"--sanger " + sangerReads } \
~
{"--pacbio " + pacbioReads } \
~
{"--nanopore " + nanoporeReads } \
~
{"--tslr " + tslrContigs } \
~
{"--trusted-contigs " + trustedContigs } \
~
{"--untrusted-contigs " + untrustedContigs } \
~
{true="--only-error-correction" false="" onlyErrorCorrection } \
~
{true="--only-assembler" false="" onlyAssembler } \
~
{true="--careful" false="" careful } \
~
{true="--disable-gzip-output" false="" disableGzipOutput} \
~
{true="--disable-rr" false="" disableRepeatResolution } \
~
{"--dataset " + dataset } \
~
{"--threads " + finalThreads} \
~
{"--memory " + finalMemory } \
~
{"-k " + k } \
~
{"--cov-cutoff " + covCutoff } \
~
{"--phred-offset " + phredOffset }
}
output {
Array[File] correctedReads = glob(outputDir + "/corrected/*.fastq*")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment