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-15 13:27:41 +00:00
|
|
|
withname: BCFTOOLS_VIEW {
|
|
|
|
if (params.genome == 'GRCh37') {
|
|
|
|
ext.args = '--output-type v --apply-filters PASS --exclude "INFO/clinical_genomics_mipAF > 0.40 | INFO/swegenAF > 0.40 | INFO/clingen_ngiAF > 0.40 | INFO/gnomad_svAF > 0.40 "'
|
|
|
|
} else if (params.genome == 'GRCh38') {
|
|
|
|
ext.args = '--output-type v --apply-filters PASS --exclude "INFO/swegenAF > 0.40"'
|
|
|
|
}
|
|
|
|
publishDir = [
|
|
|
|
enabled: false,
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
params {
|
|
|
|
|
2022-04-19 09:42:05 +00:00
|
|
|
sentieon_install_dir = "$SENTIEON_INSTALL_DIR/sentieon-genomics-202010.02/bin"
|
2022-04-15 13:27:41 +00:00
|
|
|
|
|
|
|
}
|