|
| 1 | +process { |
| 2 | + |
| 3 | + |
| 4 | + // TODO nf-core: Check the defaults for all processes |
| 5 | + cpus = { 1 * task.attempt } |
| 6 | + memory = { 6.GB * task.attempt } |
| 7 | + time = { 4.h * task.attempt } |
| 8 | + |
| 9 | + errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' } |
| 10 | + maxRetries = 2 |
| 11 | + maxErrors = '-1' |
| 12 | + |
| 13 | + |
| 14 | + // Subsampling reads |
| 15 | + withName: 'SEQTK_SAMPLE' { |
| 16 | + cpus = 6 |
| 17 | + memory = { 4.GB * task.attempt } |
| 18 | + time = { 4.h * task.attempt } |
| 19 | + } |
| 20 | + |
| 21 | + // Quality control |
| 22 | + withName: 'FASTQC' { |
| 23 | + cpus = 2 |
| 24 | + memory = { 36.GB * task.attempt } |
| 25 | + time = { 8.h * task.attempt } |
| 26 | + } |
| 27 | + withName: 'SEQFU_STATS' { |
| 28 | + cpus = 6 |
| 29 | + memory = { 4.GB * task.attempt } |
| 30 | + time = { 4.h * task.attempt } |
| 31 | + } |
| 32 | + withName: 'FASTQSCREEN_FASTQSCREEN' { |
| 33 | + cpus = 6 |
| 34 | + memory = { 36.GB * task.attempt } |
| 35 | + time = { 8.h * task.attempt } |
| 36 | + } |
| 37 | + |
| 38 | + // Reference genome processing |
| 39 | + withName: 'BWAMEM2_INDEX' { |
| 40 | + cpus = 12 |
| 41 | + memory = { 72.GB * task.attempt } |
| 42 | + time = { 16.h * task.attempt } |
| 43 | + } |
| 44 | + withName: 'BWAMEM2_MEM' { |
| 45 | + cpus = 6 |
| 46 | + memory = { 35.GB * task.attempt } |
| 47 | + time = { 16.h * task.attempt } |
| 48 | + } |
| 49 | + withName: 'SAMTOOLS_INDEX' { |
| 50 | + cpus = 6 |
| 51 | + memory = { 4.GB * task.attempt } |
| 52 | + time = { 4.h * task.attempt } |
| 53 | + } |
| 54 | + withName: 'SAMTOOLS_FAIDX' { |
| 55 | + cpus = 6 |
| 56 | + memory = { 6.GB * task.attempt } |
| 57 | + time = { 4.h * task.attempt } |
| 58 | + } |
| 59 | + // Picard metrics |
| 60 | + withName: 'PICARD_COLLECTMULTIPLEMETRICS' { |
| 61 | + cpus = 4 |
| 62 | + memory = { 8.GB * task.attempt } |
| 63 | + time = { 4.h * task.attempt } |
| 64 | + } |
| 65 | + |
| 66 | + // MultiQC aggregation |
| 67 | + withName: 'MULTIQC_GLOBAL|MULTIQC_PER_TAG' { |
| 68 | + cpus = 4 |
| 69 | + memory = { 4.GB * task.attempt } |
| 70 | + time = { 4.h * task.attempt } |
| 71 | + } |
| 72 | +} |
0 commit comments