1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2025-01-05 05:52:07 -05:00
nf-configs/conf/pipeline/raredisease/hasta.config

33 lines
1.3 KiB
Text
Raw Normal View History

2021-09-28 04:38:15 -04:00
process {
2022-04-15 09:27:41 -04:00
2021-09-28 04:38:15 -04:00
withName:'PICARD_MARKDUPLICATES' {
2022-02-21 10:19:17 -05:00
memory = { check_max( 90.GB * task.attempt, 'memory' ) }
2021-09-28 04:38:15 -04:00
}
withName:'DEEPVARIANT' {
cpus = { check_max( 16 * task.attempt, 'cpus' ) }
memory = { check_max( 80.GB * task.attempt, 'memory' ) }
}
2022-04-22 05:03:09 -04:00
withLabel:'sentieon' {
2022-08-18 09:52:31 -04:00
beforeScript = { "export PATH=\$PATH:\$SENTIEON_INSTALL_DIR/sentieon-genomics-202112.02/bin" }
}
withName: 'BCFTOOLS_VIEW' {
2022-04-15 09:27:41 -04:00
if (params.genome == 'GRCh37') {
2022-04-22 05:05:56 -04: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 09:27:41 -04:00
} else if (params.genome == 'GRCh38') {
2022-04-22 05:05:56 -04:00
ext.args = '--output-type z --apply-filters PASS --exclude "INFO/swegen_FRQ > 0.40"'
2022-04-15 09:27:41 -04: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 09:27:41 -04:00
}