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
2b439234
Commit
2b439234
authored
6 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
added structs
parent
4674c99c
No related branches found
No related tags found
1 merge request
!61
Switch to structs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
biopet/bamstats.wdl
+8
-6
8 additions, 6 deletions
biopet/bamstats.wdl
with
8 additions
and
6 deletions
biopet/bamstats.wdl
+
8
−
6
View file @
2b439234
...
@@ -2,19 +2,19 @@ version 1.0
...
@@ -2,19 +2,19 @@ version 1.0
# Copyright Sequencing Analysis Support Core - Leiden University Medical Center 2018
# Copyright Sequencing Analysis Support Core - Leiden University Medical Center 2018
import "../common.wdl" as common
task Generate {
task Generate {
input {
input {
String? preCommand
String? preCommand
File? toolJar
File? toolJar
File bam
IndexedBamFile bam
File bamIndex
File? bedFile
File? bedFile
Boolean scatterMode = false
Boolean scatterMode = false
Boolean onlyUnmapped = false
Boolean onlyUnmapped = false
Boolean tsvOutputs = false
Boolean tsvOutputs = false
String outputDir
String outputDir
File? reference
Reference? reference
File? referenceDict
Int memory = 4
Int memory = 4
Float memoryMultiplier = 2.0
Float memoryMultiplier = 2.0
}
}
...
@@ -23,14 +23,16 @@ task Generate {
...
@@ -23,14 +23,16 @@ task Generate {
then "java -Xmx" + memory + "G -jar " + toolJar
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-bamstats -Xmx" + memory + "G"
else "biopet-bamstats -Xmx" + memory + "G"
String refArg = if (defined(reference)) then "--reference " + select_first([reference]).fasta else ""
command {
command {
set -e -o pipefail
set -e -o pipefail
~{preCommand}
~{preCommand}
mkdir -p ~{outputDir}
mkdir -p ~{outputDir}
~{toolCommand} Generate \
~{toolCommand} Generate \
--bam ~{bam} \
--bam ~{bam
.file
} \
~{"--bedFile " + bedFile} \
~{"--bedFile " + bedFile} \
~{
"--reference " + reference
} \
~{
refArg
} \
~{true="--onlyUnmapped" false="" onlyUnmapped} \
~{true="--onlyUnmapped" false="" onlyUnmapped} \
~{true="--scatterMode" false="" scatterMode} \
~{true="--scatterMode" false="" scatterMode} \
~{true="--tsvOutputs" false="" tsvOutputs} \
~{true="--tsvOutputs" false="" tsvOutputs} \
...
...
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