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
91a6841a
Commit
91a6841a
authored
6 years ago
by
Pappas
Browse files
Options
Downloads
Patches
Plain Diff
Flash task
parent
2aff5d1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
Adding flash task for combining overlapping reads
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flash.wdl
+57
-0
57 additions, 0 deletions
flash.wdl
with
57 additions
and
0 deletions
flash.wdl
0 → 100644
+
57
−
0
View file @
91a6841a
#workflow runFlash {
# String preCommand
# String outDirPath
# File R1
# File R2
#
# call flash {
# input:
# preCommand = preCommand,
# outDirPath = outDirPath,
# inputR1 = R1,
# inputR2 = R2,
# }
#}
task flash {
String? preCommand
File inputR1
File inputR2
String outDirPath
String? outPrefix = "flash"
String? logPath = outDirPath + "/" + outPrefix + ".log"
Int? minOverlap
Int? maxOverlap
Boolean? compress = true
Int? threads = 1
Int? memory = 4
Int? cores = 1
command {
set -e -o pipefail
mkdir -p ${outDirPath}
${preCommand}
flash \
${"--threads=" + threads} \
${"--output-directory=" + outDirPath} \
${"--output-prefix=" + outPrefix} \
${true="--compress " false="" defined(compress)} \
${"--min-overlap=" + minOverlap} \
${"--max-overlap=" + maxOverlap} \
${inputR1} ${inputR2} 2>&1 | tee ${logPath}
}
output {
File extendedFrags = outDirPath + "/" + outPrefix + ".extendedFrags.fastq.gz"
File notCombined1 = outDirPath + "/" + outPrefix + ".notCombined_1.fastq.gz"
File notCombined2 = outDirPath + "/" + outPrefix + ".notCombined_2.fastq.gz"
File hist = outDirPath + "/" + outPrefix + ".hist"
File histogram = outDirPath + "/" + outPrefix + ".histogram"
String log = select_first([logPath])
}
runtime {
cpu: select_first([cores])
memory: select_first([memory])
}
}
\ 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