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
Branches containing commit
No related tags found
Tags containing commit
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 {
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*")
...
...
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