Skip to content

Commit dc60cb4

Browse files
committed
Add Parabricks DeepVariant module
1 parent f7b82a4 commit dc60cb4

File tree

12 files changed

+1211
-23
lines changed

12 files changed

+1211
-23
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### `Added`
99

1010
- Interval parameter in the default retroseq call [#717](https://github.com/nf-core/raredisease/pull/717)
11+
- Parabricks DeepVariant as an optional variant caller
1112

1213
### `Changed`
1314

@@ -26,9 +27,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2627

2728
### Tool updates
2829

29-
| Tool | Old version | New version |
30-
| ---- | ----------- | ----------- |
31-
| | | |
30+
| Tool | Old version | New version |
31+
| ----- | ----------- | ----------- |
32+
| pbrun | | 4.5.1-1 |
3233

3334
## 2.6.0 - Cacofonix [2025-06-25]
3435

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
Config file for defining DSL2 per module options and publishing paths
4+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5+
Available keys to override module options:
6+
ext.args = Additional arguments appended to command in module.
7+
ext.args2 = Second set of arguments appended to command in module (multi-tool modules).
8+
ext.args3 = Third set of arguments appended to command in module (multi-tool modules).
9+
ext.prefix = File name prefix for output files.
10+
ext.when = Conditional clause
11+
----------------------------------------------------------------------------------------
12+
*/
13+
14+
//
15+
// SNV calling options - parabricks deepvariant
16+
//
17+
18+
process {
19+
20+
withName: '.*CALL_SNV_DEEPVARIANT_PARABRICKS:.*' {
21+
ext.when = params.variant_caller.equals("parabricks_deepvariant")
22+
}
23+
24+
withName: '.*CALL_SNV_DEEPVARIANT_PARABRICKS:PARABRICKS_DEEPVARIANT' {
25+
ext.args = { [
26+
'--gvcf',
27+
params.analysis_type.toUpperCase() == 'WES' ? '--use-wes-model' : '',
28+
(meta.sex == 1) ?
29+
(params.genome == 'GRCh37' ? '--haploid-contigs X,Y' : '--haploid-contigs chrX,chrY')
30+
: ''
31+
].findAll { it }.join(' ').trim() }
32+
33+
ext.prefix = { "${meta.id}_parabricks_deepvar" }
34+
35+
label = 'process_gpu'
36+
}
37+
38+
withName: '.*CALL_SNV_DEEPVARIANT_PARABRICKS:GLNEXUS' {
39+
ext.args = '--config DeepVariant_unfiltered'
40+
}
41+
42+
withName: '.*CALL_SNV_DEEPVARIANT_PARABRICKS:SPLIT_MULTIALLELICS_PB' {
43+
ext.args = '--output-type z --multiallelics -both'
44+
}
45+
46+
withName: '.*CALL_SNV_DEEPVARIANT_PARABRICKS:REMOVE_DUPLICATES_PB' {
47+
ext.args = '--output-type z --rm-dup none'
48+
ext.prefix = { "${meta.id}_split_rmdup" }
49+
}
50+
51+
withName: '.*CALL_SNV_DEEPVARIANT_PARABRICKS:ADD_VARCALLER_TO_BED' {
52+
ext.args2 = '-s 1 -b 2 -e 3'
53+
}
54+
55+
withName: '.*CALL_SNV_DEEPVARIANT_PARABRICKS:BCFTOOLS_ANNOTATE' {
56+
ext.args = "-c CHROM,FROM,TO,FOUND_IN --output-type z"
57+
ext.prefix = { "${meta.id}_split_rmdup_info" }
58+
}
59+
}

modules.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,11 @@
318318
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",
319319
"installed_by": ["modules"]
320320
},
321+
"parabricks/deepvariant": {
322+
"branch": "master",
323+
"git_sha": "e824d95384679ea50c6c49aae9851160de80a301",
324+
"installed_by": ["modules"]
325+
},
321326
"peddy": {
322327
"branch": "master",
323328
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",

modules/nf-core/parabricks/deepvariant/main.nf

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/parabricks/deepvariant/meta.yml

Lines changed: 93 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)