Skip to content
Snippets Groups Projects
Commit 5db3dd91 authored by Cats's avatar Cats
Browse files

update memory and timeMinutes for cutadapt and bwa

parent aefc2e9d
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ task Mem {
Int threads = 4
Int? memoryGb
Int timeMinutes = 1 + ceil(size([read1, read2], "G") * 500 / threads)
Int timeMinutes = 10 + ceil(size([read1, read2], "G") * 500 / threads)
# Contains bwa 0.7.17 bwakit 0.7.17.dev1 and samtools 1.10.
String dockerImage = "quay.io/biocontainers/mulled-v2-ad317f19f5881324e963f6a6d464d696a2825ab6:c59b7a73c87a9fe81737d5d628e10a3b5807f453-0"
}
......@@ -48,7 +48,7 @@ task Mem {
Int estimatedSortThreads = if threads == 1 then 1 else 1 + ceil(threads / 4.0)
Int totalSortThreads = select_first([sortThreads, estimatedSortThreads])
# BWA needs slightly more memory than the size of the index files (~10%). Add a margin for safety here.
Int estimatedMemoryGb = 1 + ceil(size(bwaIndex.indexFiles, "G") * 1.5) + sortMemoryPerThreadGb * totalSortThreads
Int estimatedMemoryGb = 1 + ceil(size(bwaIndex.indexFiles, "G") * 2) + sortMemoryPerThreadGb * totalSortThreads
# The bwa postalt script is out commented as soon as usePostalt = false.
# This hack was tested with bash, dash and ash. It seems that comments in between pipes work for all of them.
......
......@@ -84,7 +84,7 @@ task Cutadapt {
Int cores = 4
String memory = "~{300 + 100 * cores}M"
Int timeMinutes = 1 + ceil(size([read1, read2], "G") * 12.0 / cores)
Int timeMinutes = 10 + ceil(size([read1, read2], "G") * 12.0 / cores)
String dockerImage = "quay.io/biocontainers/cutadapt:2.10--py37hf01694f_1"
}
......
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