1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-11 12:33:10 +00:00
nf-configs/conf/pipeline/raredisease/hasta.config

33 lines
1.3 KiB
Text
Raw Normal View History

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" }
}
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,
]
}
// Java memory fixes
withName:'QUALIMAP_BAMQC' {
clusterOptions = { "-A $params.priority ${params.clusterOptions ?: ''} ${task.memory ? "--mem ${task.memory.mega * 1.15 as long}M" : ''}" }
}
withName:'PICARD_MARKDUPLICATES' {
clusterOptions = { "-A $params.priority ${params.clusterOptions ?: ''} ${task.memory ? "--mem ${task.memory.mega * 1.15 as long}M" : ''}" }
}
2022-04-15 13:27:41 +00:00
}