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
47457416
Unverified
Commit
47457416
authored
5 years ago
by
Ruben Vorderman
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #133 from biowdl/BIOWDL-302
Simplify cutadapt.
parents
2bb092c9
5badadc6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+25
-7
25 additions, 7 deletions
.travis.yml
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
cutadapt.wdl
+13
-34
13 additions, 34 deletions
cutadapt.wdl
with
39 additions
and
41 deletions
.travis.yml
+
25
−
7
View file @
47457416
language
:
java
# We use conda to install cromwell.
language
:
python
python
:
-
3.6
before_install
:
# Install conda
-
export MINICONDA=${HOME}/miniconda
-
export PATH=${MINICONDA}/bin:${PATH}
-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
-
bash miniconda.sh -b -f -p ${MINICONDA}
-
conda config --set always_yes yes
-
conda config --add channels defaults
-
conda config --add channels bioconda
-
conda config --add channels conda-forge
install
:
-
conda install cromwell
script
:
-
set -e
-
export CROMWELL_VERSION=35
-
wget https://github.com/broadinstitute/cromwell/releases/download/$CROMWELL_VERSION/womtool-$CROMWELL_VERSION.jar
-
for F in `find -name "*.wdl"`; do echo $F; java -jar womtool-*.jar validate $F; done
-
'
if
[
"$TRAVIS_PULL_REQUEST"
!=
"false"
];
then
git
submodule
foreach
--recursive
git
checkout
$TRAVIS_BRANCH
&&
git
submodule
foreach
--recursive
git
pull;
fi'
-
"
git
diff
--exit-code
||
(echo
ERROR:
Git
changes
detected.
Please
update
submodules
&&
exit
1)"
-
set -e
-
for FILE in $(find -name "*.wdl"); do echo $FILE; womtool validate $FILE; done
-
'
if
[
"$TRAVIS_PULL_REQUEST"
!=
"false"
];
then
git
submodule
foreach
git
checkout
develop
&&
git
submodule
foreach
git
pull;
fi'
-
"
git
diff
--exit-code
||
(echo
ERROR:
Git
changes
detected.
Please
update
submodules
&&
exit
1)"
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
1
−
0
View file @
47457416
...
...
@@ -11,6 +11,7 @@ that users understand how the changes affect the new version.
version 1.0.0-dev
---------------------------
+
Cutadapt: simplify interface
+
Bigger memory multiplier in mutect to take in account bigger vmem usage
+
Cutadapt: Remove default adapter
+
Fastqsplitter: use version 1.1.
...
...
This diff is collapsed.
Click to expand it.
cutadapt.wdl
+
13
−
34
View file @
47457416
...
...
@@ -7,15 +7,12 @@ task Cutadapt {
String read1output = "cut_r1.fq.gz"
String? read2output
String? format
Array[String]+? adapter
Array[String]+? front
Array[String]+? anywhere
Array[String]+? adapterRead2
Array[String]+? frontRead2
Array[String]+? anywhereRead2
Array[String]+? adapterBoth
# contaminations = anywhereBoth
Array[String]+? contaminations
Array[String] adapter = []
Array[String] front = []
Array[String] anywhere = []
Array[String] adapterRead2 = []
Array[String] frontRead2 = []
Array[String] anywhereRead2 = []
Boolean? interleaved
String? pairFilter
Float? errorRate
...
...
@@ -73,25 +70,7 @@ task Cutadapt {
then "mkdir -p $(dirname " + realRead2output + ")"
else ""
# FIXME: This crappy overengineering can be removed once cromwell can handle subworkflow inputs correctly.
# Some WDL magic here to set both adapters with one setting.
# If then else's are needed to keep the variable optional and undefined
Array[String]+? adapterForward = if (defined(adapter) || defined(adapterBoth))
then select_first([adapter, adapterBoth])
else adapter
# Check if read2 is defined before applying adapters.
Array[String]+? adapterReverse = if (defined(read2) && (defined(adapterRead2) || defined(adapterBoth)))
then select_first([adapterRead2, adapterBoth])
else adapterRead2
# Same for contaminations
Array[String]+? anywhereForward = if (defined(anywhere) || defined(contaminations))
then select_first([anywhere, contaminations])
else anywhere
Array[String]+? anywhereReverse = if (defined(read2) && (defined(anywhereRead2) || defined(contaminations)))
then select_first([anywhereRead2, contaminations])
else anywhereRead2
# FIXME: Use prefix() function for adapter, adapterRead2, etc.
command {
set -e
~{"mkdir -p $(dirname " + read1output + ")"}
...
...
@@ -99,12 +78,12 @@ task Cutadapt {
cutadapt \
~{"--cores=" + cores} \
~{true="-Z" false="" Z} \
~{true="-a" false=""
defined
(adapter
Forward)
} ~{sep=" -a " adapter
Forward
} \
~{true="-A" false=""
defined
(adapterRe
verse)
} ~{sep=" -A " adapterRe
verse
} \
~{true="-g" false=""
defined
(front)} ~{sep=" -g " front} \
~{true="-G" false=""
defined
(frontRead2)} ~{sep=" -G " frontRead2} \
~{true="-b" false=""
defined
(anywhere
Forward)
} ~{sep=" -b " anywhere
Forward
} \
~{true="-B" false=""
defined
(anywhereRe
verse)
} ~{sep=" -B " anywhereRe
verse
} \
~{true="-a" false=""
length
(adapter
) > 0
} ~{sep=" -a " adapter} \
~{true="-A" false=""
length
(adapterRe
ad2) > 0
} ~{sep=" -A " adapterRe
ad2
} \
~{true="-g" false=""
length
(front)
> 0
} ~{sep=" -g " front} \
~{true="-G" false=""
length
(frontRead2)
> 0
} ~{sep=" -G " frontRead2} \
~{true="-b" false=""
length
(anywhere
) > 0
} ~{sep=" -b " anywhere} \
~{true="-B" false=""
length
(anywhereRe
ad2) > 0
} ~{sep=" -B " anywhereRe
ad2
} \
--output ~{read1output} ~{if defined(read2) then "-p " + realRead2output else ""} \
~{"--to-short-output " + tooShortOutputPath} \
~{"--to-short-paired-output " + tooShortPairedOutputPath} \
...
...
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