2021-09-28 08:38:15 +00:00
|
|
|
process {
|
2022-04-15 13:27:41 +00:00
|
|
|
|
2021-09-28 08:38:15 +00:00
|
|
|
withName:'PICARD_MARKDUPLICATES' {
|
2022-02-21 15:19:17 +00:00
|
|
|
memory = { check_max( 90.GB * task.attempt, 'memory' ) }
|
2021-09-28 08:38:15 +00:00
|
|
|
}
|
|
|
|
withName:'DEEPVARIANT' {
|
|
|
|
cpus = { check_max( 16 * task.attempt, 'cpus' ) }
|
|
|
|
memory = { check_max( 80.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
2022-04-22 09:03:09 +00:00
|
|
|
withLabel:'sentieon' {
|
2022-08-18 13:52:31 +00:00
|
|
|
beforeScript = { "export PATH=\$PATH:\$SENTIEON_INSTALL_DIR/sentieon-genomics-202112.02/bin" }
|
|
|
|
}
|
2022-08-23 09:21:58 +00:00
|
|
|
withName: 'BCFTOOLS_VIEW' {
|
2022-04-15 13:27:41 +00:00
|
|
|
if (params.genome == 'GRCh37') {
|
2022-04-22 09:05:56 +00:00
|
|
|
ext.args = '--output-type z --apply-filters PASS --exclude "INFO/clinical_genomics_mipAF > 0.40 | INFO/swegenAF > 0.40 | INFO/clingen_ngiAF > 0.40 | INFO/gnomad_svAF > 0.40 "'
|
2022-04-15 13:27:41 +00:00
|
|
|
} else if (params.genome == 'GRCh38') {
|
2022-04-22 09:05:56 +00:00
|
|
|
ext.args = '--output-type z --apply-filters PASS --exclude "INFO/swegen_FRQ > 0.40"'
|
2022-04-15 13:27:41 +00:00
|
|
|
}
|
|
|
|
publishDir = [
|
|
|
|
enabled: false,
|
|
|
|
]
|
|
|
|
}
|
2022-06-09 08:28:20 +00:00
|
|
|
|
|
|
|
// Java memory fixes
|
2022-05-30 10:58:12 +00:00
|
|
|
withName:'QUALIMAP_BAMQC' {
|
2022-06-09 08:28:20 +00:00
|
|
|
clusterOptions = { "-A $params.priority ${params.clusterOptions ?: ''} ${task.memory ? "--mem ${task.memory.mega * 1.15 as long}M" : ''}" }
|
2022-05-30 10:58:12 +00:00
|
|
|
}
|
2022-06-09 08:28:20 +00:00
|
|
|
withName:'PICARD_MARKDUPLICATES' {
|
|
|
|
clusterOptions = { "-A $params.priority ${params.clusterOptions ?: ''} ${task.memory ? "--mem ${task.memory.mega * 1.15 as long}M" : ''}" }
|
2022-05-30 10:58:12 +00:00
|
|
|
}
|
2022-06-09 08:28:20 +00:00
|
|
|
|
2022-04-15 13:27:41 +00:00
|
|
|
}
|