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
af259d7d
Commit
af259d7d
authored
6 years ago
by
Pappas
Browse files
Options
Downloads
Patches
Plain Diff
centrifuge input from File to Array[File] and style fixes
parent
fc01ad36
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!16
Centrifuge related changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
centrifuge.wdl
+32
-26
32 additions, 26 deletions
centrifuge.wdl
with
32 additions
and
26 deletions
centrifuge.wdl
+
32
−
26
View file @
af259d7d
# Copyright Sequencing Analysis Support Core - Leiden University Medical Center 2018
#
# Tasks from centrifuge
task build {
task Build {
File conversionTable
File taxonomyTree
File inputFasta
...
...
@@ -22,9 +21,10 @@ task build {
File? nameTable
File? sizeTable
Int? seed
Int? kmerCount
Int? threads
Int? memory
Int? kmerCount
command {
set -e -o pipefail
...
...
@@ -56,25 +56,28 @@ task build {
}
}
task
c
lassify {
task
C
lassify {
String outputDir
Boolean? compressOutput = true
String? preCommand
String indexPrefix
File? unpairedReads
File read1
File? read2
Array[
File
]
? unpairedReads
Array[
File
]+
read1
Array[
File
]
? read2
Boolean? fastaInput
# Variables for handling output
String outputFileName = outputDir + "/centrifuge.out"
String reportFileName = outputDir + "/centrifuge_report.tsv"
String finalOutputName = if (compressOutput == true) then outputFileName + ".gz" else outputFileName
String? metFileName # If this is specified, the report file is empty
String outputFilePath = outputDir + "/centrifuge.out"
String reportFilePath = outputDir + "/centrifuge_report.tsv"
String finalOutputPath = if (compressOutput == true)
then outputFilePath + ".gz"
else outputFilePath
String? metFilePath # If this is specified, the report file is empty
Int? assignments
Int? minHitLen
Int? minTotalLen
Array[String]? hostTaxIds
Array[String]? excludeTaxIds
Int? threads
Int? memory
...
...
@@ -86,22 +89,22 @@ task classify {
${"-p " + threads} \
${"-x " + indexPrefix} \
${true="-f" false="" fastaInput} \
${true="-k
" false="" defined(assignments)} ${assignments} \
${true="-1
" false="-U
" defined(read2)} ${read1} \
${
"-2 " +
read2} \
${"-U
"
+
unpairedReads} \
${"--report-file " + reportFile
Name
} \
${true="-k" false="" defined(assignments)} ${assignments} \
${true="-1" false="-U" defined(read2)} ${
sep=','
read1} \
${
true="-2" false="" defined(read2)} ${sep=','
read2} \
${
true=
"-U"
false="" defined(
unpairedReads
)
}
${sep=',' unpairedReads}
\
${"--report-file " + reportFile
Path
} \
${"--min-hitlen " + minHitLen} \
${"--min-totallen " + minTotalLen} \
${"--met-file " + metFile
Name
} \
${"--met-file " + metFile
Path
} \
${true="--host-taxids " false="" defined(hostTaxIds)} ${sep=',' hostTaxIds} \
${true="--exclude-taxids " false="" defined(excludeTaxIds)} ${sep=',' excludeTaxIds} \
${true="| gzip -c >" false="-S" compressOutput} ${finalOutput
Name
}
${true="| gzip -c >" false="-S" compressOutput} ${finalOutput
Path
}
}
output {
File classifiedReads = finalOutput
Name
File reportFile = reportFile
Name
File classifiedReads = finalOutput
Path
File reportFile = reportFile
Path
}
runtime {
...
...
@@ -110,7 +113,7 @@ task classify {
}
}
task
d
ownload {
task
D
ownload {
String libraryPath
Array[String]? domain
String? executable = "centrifuge-download"
...
...
@@ -153,10 +156,11 @@ task download {
}
}
task
d
ownloadTaxonomy {
task
D
ownloadTaxonomy {
String centrifugeTaxonomyDir
String? executable = "centrifuge-download"
String? preCommand
command {
set -e -o pipefail
${preCommand}
...
...
@@ -164,23 +168,25 @@ task downloadTaxonomy {
-o ${centrifugeTaxonomyDir} \
taxonomy
}
output {
File taxonomyTree = centrifugeTaxonomyDir + "/nodes.dmp"
File nameTable = centrifugeTaxonomyDir + "/names.dmp"
}
}
task
k
report {
task
K
report {
String? preCommand
File centrifugeOut
Boolean inputIsCompressed
String kreportFile
Name
=sub(centrifugeOut, "\\.out$|\\.out\\.gz$", "\\.kreport")
String kreportFile
Path
=sub(centrifugeOut, "\\.out$|\\.out\\.gz$", "\\.kreport")
String indexPrefix
Boolean? onlyUnique
Boolean? showZeros
Boolean? isCountTable
Int? minScore
Int? minLength
Int? cores
Int? memory
...
...
@@ -196,11 +202,11 @@ task kreport {
${"--min-length " + minLength} \
${true="<(zcat" false="" inputIsCompressed} ${centrifugeOut}\
${true=")" false="" inputIsCompressed} \
> ${kreportFile
Name
}
> ${kreportFile
Path
}
}
output {
File kreport = kreportFile
Name
File kreport = kreportFile
Path
}
runtime {
...
...
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