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
42fbbcb8
Unverified
Commit
42fbbcb8
authored
5 years ago
by
Ruben Vorderman
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #123 from biowdl/BIOWDL-284
Use compression level 1 in cutadapt.
parents
91f5503e
821ad55c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
cutadapt.wdl
+13
-10
13 additions, 10 deletions
cutadapt.wdl
with
15 additions
and
10 deletions
CHANGELOG.md
+
2
−
0
View file @
42fbbcb8
...
...
@@ -11,6 +11,8 @@ that users understand how the changes affect the new version.
version 1.0.0-dev
---------------------------
+
Cutadapt: If the output is a gzipped file, compress with level 1 (instead of default 6).
+
Cutadapt: Fix issues with read2output when using single-end reads.
+
Add feature type, idattr and additional attributes to htseq-count.
+
Added allow-contain option to bowtie.
+
Added a changelog to keep track of changes.
This diff is collapsed.
Click to expand it.
cutadapt.wdl
+
13
−
10
View file @
42fbbcb8
...
...
@@ -5,7 +5,7 @@ task Cutadapt {
File read1
File? read2
String read1output = "cut_r1.fq.gz"
String? read2output
= if defined(read2) then "cut_r2.fq.gz" else read2
String? read2output
String? format
Array[String]+? adapter
Array[String]+? front
...
...
@@ -59,15 +59,19 @@ task Cutadapt {
Boolean? bwa
Boolean? zeroCap
Boolean? noZeroCap
String? reportPath
String reportPath = "cutadapt_report.txt"
#Int compressionLevel = 1 # This only affects outputs with the .gz suffix.
# --compression-level has a bug in 2.4 https://github.com/marcelm/cutadapt/pull/388
#~{"--compression-level=" + compressionLevel} \
Boolean Z = true # equal to compressionLevel=1 # Fixme: replace once upstream is fixed.
Int cores = 1
Int memory = 16 # FIXME: Insane memory. Double-check if needed.
String dockerImage = "quay.io/biocontainers/cutadapt:2.
3
--py3
6
h14c3975_0"
String dockerImage = "quay.io/biocontainers/cutadapt:2.
4
--py3
7
h14c3975_0"
}
String read2outputArg = if (defined(read2output))
then "mkdir -p $(dirname " + read2output + ")"
String realRead2output = select_first([read2output, "cut_r2.fq.gz"])
String read2outputArg = if (defined(read2))
then "mkdir -p $(dirname " + realRead2output + ")"
else ""
# FIXME: This crappy overengineering can be removed once cromwell can handle subworkflow inputs correctly.
...
...
@@ -95,13 +99,14 @@ task Cutadapt {
~{read2outputArg}
cutadapt \
~{"--cores=" + cores} \
~{true="-Z" false="" Z} \
~{true="-a" false="" defined(adapterForward)} ~{sep=" -a " adapterForward} \
~{true="-A" false="" defined(adapterReverse)} ~{sep=" -A " adapterReverse} \
~{true="-g" false="" defined(front)} ~{sep=" -g " front} \
~{true="-G" false="" defined(frontRead2)} ~{sep=" -G " frontRead2} \
~{true="-b" false="" defined(anywhereForward)} ~{sep=" -b " anywhereForward} \
~{true="-B" false="" defined(anywhereReverse)} ~{sep=" -B " anywhereReverse} \
--output ~{read1output} ~{
"--paired-output
" + read2output} \
--output ~{read1output} ~{
if defined(read2) then "-p
" + rea
lRea
d2output
else ""
} \
~{"--to-short-output " + tooShortOutputPath} \
~{"--to-short-paired-output " + tooShortPairedOutputPath} \
~{"--to-long-output " + tooLongOutputPath} \
...
...
@@ -151,9 +156,7 @@ task Cutadapt {
output{
File cutRead1 = read1output
File? cutRead2 = read2output
File report = if defined(reportPath)
then select_first([reportPath])
else stdout()
File report = reportPath
File? tooLongOutput=tooLongOutputPath
File? tooShortOutput=tooShortOutputPath
File? untrimmedOutput=untrimmedOutputPath
...
...
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