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
5b096cee
Commit
5b096cee
authored
4 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
Put sorting back into bwakit task
parent
0cb76481
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
bwa.wdl
+17
-3
17 additions, 3 deletions
bwa.wdl
with
17 additions
and
3 deletions
bwa.wdl
+
17
−
3
View file @
5b096cee
...
...
@@ -92,7 +92,16 @@ task Kit {
Boolean sixtyFour = false
Int threads = 4
String memoryGb = 1 + ceil(size(bwaIndex.indexFiles, "G"))
# Samtools uses *additional* threads. So by default this option should
# not be used.
Int sortThreads = 0
# Compression uses zlib. Higher than level 2 causes enormous slowdowns.
# GATK/Picard default is level 2.
Int sortMemoryPerThreadGb = 4
Int compressionLevel = 1
# BWA needs slightly more memory than the size of the index files (~10%). Add a margin for safety here.
Int memoryGb = 1 + ceil(size(bwaIndex.indexFiles, "G") * 1.2) + sortMemoryPerThreadGb * sortThreads
Int timeMinutes = 1 + ceil(size([read1, read2], "G") * 220 / threads)
String dockerImage = "biowdl/bwakit:0.7.17-dev-experimental"
}
...
...
@@ -112,7 +121,7 @@ task Kit {
~{bwaIndex.fastaFile}~{true=".64.alt" false=".alt" sixtyFour} | \
samtools sort \
~{"-@ " + sortThreads} \
-m ~{sortMemoryPerThread
}
\
-m ~{sortMemoryPerThread
Gb}G
\
-l ~{compressionLevel} \
- \
-o ~{outputPrefix}.aln.bam
...
...
@@ -121,6 +130,7 @@ task Kit {
output {
File outputBam = outputPrefix + ".aln.bam"
File outputBamIndex = outputPrefix + ".aln.bai"
}
runtime {
...
...
@@ -141,14 +151,18 @@ task Kit {
readgroup: {description: "A readgroup identifier.", category: "common"}
sixtyFour: {description: "Whether or not the index uses the '.64' suffixes.", category: "common"}
threads: {description: "The number of threads to use for alignment.", category: "advanced"}
memoryGb: {description: "The amount of memory this job will use in gigabytes.", category: "advanced"}
sortThreads: {description: "The number of additional threads to use for sorting.", category: "advanced"}
sortMemoryPerThreadGb: {description: "The amount of memory for each sorting thread in gigabytes.", category: "advanced"}
compressionLevel: {description: "The compression level of the output BAM.", category: "advanced"}
memory: {description: "The amount of memory this job will use.", category: "advanced"}
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.",
category: "advanced"}
# outputs
outputBam: "The produced BAM file."
outputBamIndex: "The index of the produced BAM 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