@@ -20,8 +20,6 @@ process {
2020
2121 // BCL convert
2222 withName: BCLCONVERT {
23- cpus = 18
24- memory = 144.GB
2523 ext.args = {[
2624 meta.lane ? "--bcl-only-lane ${meta.lane}" : "",
2725 "--force",
@@ -80,6 +78,7 @@ process {
8078 params.trim_tail > 0 ? "--trim_tail1 ${params.trim_tail}" : "",
8179 params.adapter_R1 ? "--adapter_sequence ${params.adapter_R1}" : "",
8280 params.adapter_R2 ? "--adapter_sequence_r2 ${params.adapter_R2}" : "",
81+ "--compression 1"
8382 ].join(" ").trim()}
8483 publishDir = [
8584 [
@@ -93,8 +92,7 @@ process {
9392 // FASTQ_TO_UCRAM
9493 //// Samtools Import
9594 withName: ".*FASTQ_TO_UCRAM:SAMTOOLS_IMPORT" {
96- cpus = 9
97- memory = { 36.GB * task.attempt }
95+ label = "process_medium"
9896 // WARNING: Do NOT escape the RG tag tabs when adding a readgroup
9997 ext.args = {[
10098 meta.readgroup ? "--rg-line \"@RG\t" + meta.readgroup.findResults{ it.value?.trim() ? "$it.key:$it.value" : null }.join("\t") + "\"" : "",
@@ -104,11 +102,6 @@ process {
104102 publishDir = [ enabled: false ]
105103 }
106104
107- withName: ".*FASTQ_TO_UCRAM:SAMTOOLS_CAT" {
108- cpus = 9
109- memory = { 36.GB * task.attempt }
110- }
111-
112105 // FASTQ_TO_CRAM
113106 // Readgroup
114107 // Example:
@@ -204,7 +197,8 @@ process {
204197 "--chimSegmentMin 20",
205198 // alignment will be output only if it has no more mismatches than this value.
206199 "--outFilterMismatchNmax 4",
207- meta.readgroup ? "--outSAMattrRGline " + meta.readgroup.findResults{ it.value?.trim() ? "$it.key:$it.value" : null }.join(" ") + "\"" : ""
200+ // set the readgroup info, if available. Flag arg MUST start with 'ID' tag
201+ meta.readgroup ? "--outSAMattrRGline \"ID:${meta.readgroup.ID}" + meta.readgroup.findResults{ it.value?.trim() && it.key != "ID" ? "$it.key:$it.value" : null }.join(" ") + "\"" : ""
208202 ].join(" ").trim()}
209203 }
210204
@@ -273,6 +267,7 @@ process {
273267
274268 //// Samtools convert
275269 withName: ".*FASTQ_TO_CRAM:SAMTOOLS_CONVERT" {
270+ label = "process_medium"
276271 ext.args = {[
277272 "-C",
278273 "--output-fmt cram",
@@ -292,6 +287,7 @@ process {
292287 //// Mosdepth
293288 withName: ".*COVERAGE:MOSDEPTH" {
294289 cpus = 4
290+ memory = { 4.GB * task.attempt }
295291 // filter reads with flag 1804
296292 // read unmapped (0x4)
297293 // mate unmapped (0x8)*
0 commit comments