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
dddc35b2
Commit
dddc35b2
authored
7 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
add spades task
parent
b31f4001
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!9
Changes for virus assembly pipeline
,
!10
Extra tasks required for assembly.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spades.wdl
+80
-0
80 additions, 0 deletions
spades.wdl
with
80 additions
and
0 deletions
spades.wdl
0 → 100644
+
80
−
0
View file @
dddc35b2
task spades {
String outputDir
String? preCommand
File? read1
File? read2
File? singleRead
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 = 1
Int? memoryGb = 4
File? tmpDir
String? k
Float? covCutoff
Int? phredOffset
command {
set -e -o pipefail
${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 }
${"--threads " + threads } \
${"-1 " + read1 } \
${"-2 " + read2 } \
${"-s " + singleRead } \
${"--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 " + threads } \
${"--memory " + memoryGb } \
${"-k " + k } \
${"--cov-cutoff " + covCutoff } \
${"--phred-offset " + phredOffset }
}
output {
Array[File] correctedReads = glob_wildcard(outputDir + "/corrected/*.fastq*")
File scaffolds = outputDir + "/scaffolds.fasta"
File contigs = outputDir + "/contigs.fasta"
File assemblyGraphGfa = outputDir + "/assembly_graph.gfa"
File assemblyGraphFastg = outputDir + "/assembly_graph.fastq"
File contigsPaths = outputDir + "/contigs.paths"
File scaffoldsPaths = outputDir + "/scaffolds.paths"
File params = outputDir + "/params.txt"
File log = outputDir + "/spades/log"
}
runtime {
cpu: select_first([threads])
memory: select_first([memoryGb]) + "G"
}
}
\ No newline at end of file
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