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
Merge requests
!62
Add bamstats
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add bamstats
BIOWDL-50
into
develop
Overview
1
Commits
2
Pipelines
0
Changes
1
Merged
Ruben Vorderman
requested to merge
BIOWDL-50
into
develop
6 years ago
Overview
1
Commits
2
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
328ae634
2 commits,
5 years ago
1 file
+
48
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
biopet/bamstats.wdl
0 → 100644
+
48
−
0
Options
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
File? referenceDict
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
Loading