Skip to content
Snippets Groups Projects
Commit 2e53d9be authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

update bwa kit defaults

parent cf047f01
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@ that users understand how the changes affect the new version.
-->
Version 3.1.0-dev
---------------------------
+ Default threads for BWA in bwa.Kit task: 4. Samtools sort in the
same task: 1. Output BAM compression level to 1.
+ Lima: Remove outputPrefix variable from output section.
+ Isoseq3: Make sure stderr log file from Refine is unique and not overwritten.
+ Isoseq3: Add workaround in Refine for glob command not locating files in output directory.
......
......@@ -88,9 +88,15 @@ task Kit {
String? readgroup
Boolean sixtyFour = false
Int threads = 2
Int sortThreads = 2
String memory = "10G"
Int threads = 4
# Samtools uses *additional* threads. So by default this option should
# not be used.
Int? sortThreads
# Compression uses zlib. Higher than level 2 causes enormous slowdowns.
# GATK/Picard default is level 2.
String sortMemoryPerThread = "4G"
Int compressionLevel = 1
String memory = "32G"
String dockerImage = "biocontainers/bwakit:v0.7.15_cv1"
}
......@@ -108,8 +114,9 @@ task Kit {
-p ~{outputPrefix}.hla \
~{bwaIndex.fastaFile}~{true=".64.alt" false=".alt" sixtyFour} | \
samtools sort \
-@ ~{sortThreads} \
-m1G \
~{"-@ " + sortThreads} \
-m ~{sortMemoryPerThread} \
-l ~{compressionLevel} \
- \
-o ~{outputPrefix}.aln.bam
samtools index ~{outputPrefix}.aln.bam ~{outputPrefix}.aln.bai
......@@ -121,7 +128,7 @@ task Kit {
}
runtime {
cpu: threads + sortThreads
cpu: threads + 1 # One thread for bwa-postalt + samtools.
memory: memory
docker: dockerImage
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment