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
ccbb50c1
Commit
ccbb50c1
authored
4 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
Bring changes to hisat2 too
parent
34df25d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hisat2.wdl
+11
-6
11 additions, 6 deletions
hisat2.wdl
with
11 additions
and
6 deletions
hisat2.wdl
+
11
−
6
View file @
ccbb50c1
...
...
@@ -34,10 +34,10 @@ task Hisat2 {
String summaryFilePath = basename(outputBam, ".bam") + ".summary.txt"
Int threads = 4
Int sortThreads
= 1
Int
?
sortThreads
Int sortMemoryPerThreadGb = 2
Int compressionLevel = 1
Int memoryGb
= 1 + threads + ceil(size(indexFiles, "G") * 1.2) + sortMemoryPerThreadGb * sortThreads
Int
?
memoryGb
Int timeMinutes = 1 + ceil(size([inputR1, inputR2], "G") * 180 / threads)
# quay.io/biocontainers/mulled-v2-a97e90b3b802d1da3d6958e0867610c718cb5eb1
# is a combination of hisat2 and samtools
...
...
@@ -45,7 +45,12 @@ task Hisat2 {
String dockerImage = "quay.io/biocontainers/mulled-v2-a97e90b3b802d1da3d6958e0867610c718cb5eb1:2880dd9d8ad0a7b221d4eacda9a818e92983128d-0"
}
String bamIndexPath = sub(outputBam, "\.bam$", ".bai")
# Samtools sort may block the pipe while it is writing data to disk.
# This can lead to cpu underutilization.
# 1 thread if threads is 1. For 2-4 threads 2 sort threads. 3 sort threads for 5-8 threads.
Int estimatedSortThreads = if threads == 1 then 1 else 1 + ceil(threads / 4.0)
Int totalSortThreads = select_first([sortThreads, estimatedSortThreads])
Int estimatedMemoryGb = 1 + ceil(size(indexFiles, "G") * 1.2) + sortMemoryPerThreadGb * totalSortThreads
command {
set -e -o pipefail
...
...
@@ -63,7 +68,7 @@ task Hisat2 {
--new-summary \
--summary-file ~{summaryFilePath} \
| samtools sort \
~{"-@ " +
s
ortThreads} \
~{"-@ " +
totalS
ortThreads} \
-m ~{sortMemoryPerThreadGb}G \
-l ~{compressionLevel} \
- \
...
...
@@ -76,8 +81,8 @@ task Hisat2 {
}
runtime {
memory: "~{
m
emoryGb}G"
cpu: threads
+ 1
memory: "~{
estimatedM
emoryGb}G"
cpu: threads
time_minutes: timeMinutes
docker: dockerImage
}
...
...
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