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
2ab6daa9
Commit
2ab6daa9
authored
6 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
add bamstats
parent
124bc31a
No related branches found
No related tags found
1 merge request
!62
Add bamstats
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
biopet/bamstats.wdl
+47
-0
47 additions, 0 deletions
biopet/bamstats.wdl
with
47 additions
and
0 deletions
biopet/bamstats.wdl
0 → 100644
+
47
−
0
View file @
2ab6daa9
version 1.0
# Copyright Sequencing Analysis Support Core - Leiden University Medical Center 2018
task Generate {
input {
String? preCommand
File? toolJar
File bam
File bamIndex
File? bedFile
Boolean scatterMode = false
Boolean onlyUnmapped = false
Boolean tsvOutputs = false
String outputDir
File? reference
Int memory = 4
Float memoryMultiplier = 2.0
}
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-bamstats -Xmx" + memory + "G"
command {
set -e -o pipefail
~{preCommand}
mkdir -p ~{outputDir}
~{toolCommand} Generate \
--bam ~{bam} \
~{"--bedFile " + bedFile} \
~{"--reference " + reference} \
~{true="--onlyUnmapped" false="" onlyUnmapped} \
~{true="--scatterMode" false="" scatterMode} \
~{true="--tsvOutputs" false="" tsvOutputs}
--outputDir ~{outputDir}
}
output {
File json = outputDir + "/bamstats.json"
File summaryJson = outputDir + "/bamstats.summary.json"
}
runtime {
memory: ceil(memory * memoryMultiplier)
}
}
\ 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