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
9f1537d0
Commit
9f1537d0
authored
7 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
add preCommand
parent
6cccf353
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
centrifuge.wdl
+9
-6
9 additions, 6 deletions
centrifuge.wdl
cutadapt.wdl
+2
-2
2 additions, 2 deletions
cutadapt.wdl
fastqc.wdl
+2
-2
2 additions, 2 deletions
fastqc.wdl
ncbi.wdl
+2
-2
2 additions, 2 deletions
ncbi.wdl
with
15 additions
and
12 deletions
centrifuge.wdl
+
9
−
6
View file @
9f1537d0
...
...
@@ -6,7 +6,7 @@ task download {
String libraryPath
Array[String]? domain
String? executable = "centrifuge-download"
File? condaEnvironment
String? preCommand
String? seqTaxMapPath
String? database = "refseq"
String? assemblyLevel
...
...
@@ -22,11 +22,12 @@ task download {
# The bash statement at the beginning is to make sure
# the directory for the SeqTaxMapPath exists.
command {
set -e -o pipefail
${preCommand}
${'if [ ! -f ' + seqTaxMapPath +
' ]; then mkdir -p ' + seqTaxMapPath +
'; rm -d ' + seqTaxMapPath +
'; fi' }
${"source activate " + condaEnvironment}
${executable} \
-o ${libraryPath} \
${true='-d ' false='' defined(domain)}${sep=',' domain} \
...
...
@@ -50,9 +51,10 @@ task download {
task downloadTaxonomy {
String centrifugeTaxonomyDir
String? executable = "centrifuge-download"
File? condaEnvironment
String? preCommand
command {
${"source activate " + condaEnvironment}
set -e -o pipefail
${preCommand}
${executable} \
-o ${centrifugeTaxonomyDir} \
taxonomy
...
...
@@ -69,7 +71,7 @@ task build {
File taxonomyTree
File inputFasta
String centrifugeIndexBase
File? condaEnvironment
String? preCommand
String? centrifugeBuildExecutable = "centrifuge-build"
#Boolean? c = false
Boolean? largeIndex = false
...
...
@@ -88,9 +90,10 @@ task build {
Int? kmerCount
command {
set -e -o pipefail
${preCommand}
mkdir -p ${centrifugeIndexBase}
rm -d ${centrifugeIndexBase}
${"source activate " + condaEnvironment}
${centrifugeBuildExecutable} \
${true='--large-index' false='' largeIndex} \
${true='--noauto' false='' noAuto} \
...
...
This diff is collapsed.
Click to expand it.
cutadapt.wdl
+
2
−
2
View file @
9f1537d0
...
...
@@ -4,7 +4,7 @@ task cutadapt {
String read1output
String? read2output
String? format
String?
condaEnv
String?
preCommand
Int? cores = 1
Array[String]? adapter
Array[String]? front
...
...
@@ -57,7 +57,7 @@ task cutadapt {
command {
set -e -o pipefail
${
"source activate " + condaEnv
}
${
preCommand
}
cutadapt \
${"--cores=" + cores} \
${true="-a " false="" defined(adapter)} ${sep=" -a " adapter} \
...
...
This diff is collapsed.
Click to expand it.
fastqc.wdl
+
2
−
2
View file @
9f1537d0
task fastqc {
File seqFile
String outdirPath
String?
condaEnv
String?
preCommand
Boolean? casava
Boolean? nano
Boolean? noFilter
...
...
@@ -18,7 +18,7 @@ task fastqc {
command {
set -e -o pipefail
${
"source activate " + condaEnv
}
${
preCommand
}
mkdir -p ${outdirPath}
fastqc \
${"--outdir " + outdirPath} \
...
...
This diff is collapsed.
Click to expand it.
ncbi.wdl
+
2
−
2
View file @
9f1537d0
...
...
@@ -14,11 +14,11 @@ task genomeDownload {
String? domain = "all"
String? executable = "ncbi-genome-download"
File? condaEnvironment
String? preCommand
command {
set -e -o pipefail
${
"source activate " + condaEnvironment
}
${
preCommand
}
${executable} \
${"--section " + section} \
${"--format " + format} \
...
...
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