Skip to content

Commit 9be3c05

Browse files
authored
Merge pull request #447 from nf-core/add-pyrodigal-param
Prevent Pyrodigal from adding stop codon indicators
2 parents c1b6a7e + 5b2a679 commit 9be3c05

7 files changed

+76
-18
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- [#437](https://github.com/nf-core/funcscan/pull/437) Fixed file name error when supplying already preprocessed CARD database for ARG workflow. (by @jasmezz)
2525
- [#446](https://github.com/nf-core/funcscan/pull/446) Updated antiSMASH modules to fix apptainer execution. (by @jasmezz and @jfy133)
2626
- [#448](https://github.com/nf-core/funcscan/pull/448) Fixed taxonomy merge to work with output from GTDB/SILVA/KALAMARI. (by @darcy220606)
27+
- [#447](https://github.com/nf-core/funcscan/pull/447) Added `--annotation_pyrodigal_usespecialstopcharacter` parameter to improve AMPlify screening. (by @jasmezz)
2728

2829
### `Dependencies`
2930

conf/modules.config

+1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ process {
201201
params.annotation_pyrodigal_singlemode ? "-p single" : "-p meta",
202202
params.annotation_pyrodigal_closed ? "-c" : "",
203203
params.annotation_pyrodigal_forcenonsd ? "-n" : "",
204+
params.annotation_pyrodigal_usespecialstopcharacter ? '' : '--no-stop-codon',
204205
"-g ${params.annotation_pyrodigal_transtable}",
205206
].join(' ').trim()
206207
}

nextflow.config

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ params {
6666
annotation_pyrodigal_closed = false
6767
annotation_pyrodigal_transtable = 11
6868
annotation_pyrodigal_forcenonsd = false
69+
annotation_pyrodigal_usespecialstopcharacter = false
6970

7071
annotation_bakta_db = null
7172
annotation_bakta_db_downloadtype = 'full'

nextflow_schema.json

+7
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,13 @@
518518
"fa_icon": "fas fa-barcode",
519519
"description": "Forces Pyrodigal to scan for motifs.",
520520
"help_text": "Forces Pyrodigal to a full scan for motifs rather than activating the Shine-Dalgarno RBS finder, the default scanner for Pyrodigal to train for motifs.\n\nFor more information check the Pyrodigal [documentation](https://pyrodigal.readthedocs.io).\n\n> Modifies tool parameter(s):\n> - PYRODIGAL: `-n`"
521+
},
522+
"annotation_pyrodigal_usespecialstopcharacter": {
523+
"type": "boolean",
524+
"fa_icon": "fa fa-star-of-life",
525+
"description": "This forces Pyrodigal to append asterisks (`*`) as stop codon indicators. Do not use when running AMP workflow.",
526+
"help_text": "Some downstream tools like AMPlify cannot process sequences containing non-sequence characters like the stop codon indicator `*`. Thus, this flag is deactivated by default. Activate this flag to revert the behaviour and have Pyrodigal append `*` as stop codon indicator to annotated sequences.\n\nFor more information check the Pyrodigal [documentation](https://pyrodigal.readthedocs.io).\n\n> Modifies tool parameter(s):\n> - PYRODIGAL: `--no-stop-codon`",
527+
"default": false
521528
}
522529
},
523530
"fa_icon": "fas fa-file-signature"

ro-crate-metadata.json

+62-14
Large diffs are not rendered by default.

tests/test.nf.test.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"deeparg_tsv_ARG": {
4848
"content": [
4949
"sample_1.align.daa.tsv:md5,21822364379fe8f991d27cdb52a33d1d",
50-
"sample_2.align.daa.tsv:md5,f448465df58785a87cdee53691a77bfe",
50+
"sample_2.align.daa.tsv:md5,d59287f357de198639bdca5dbaede173",
5151
"sample_1.mapping.ARG:md5,0e049e99eab4c55666062df21707d5b9",
5252
"sample_2.mapping.ARG:md5,0e049e99eab4c55666062df21707d5b9"
5353
],

tests/test_preannotated.nf.test.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"content": [
44
"sample_1.align.daa.tsv:md5,0e71c37318bdc6cba792196d0455293d",
55
"sample_2.align.daa.tsv:md5,1092ecd3cd6931653168b46c7afeb9e3",
6-
"sample_3.align.daa.tsv:md5,b79070fe26acd1a10ae3aaf06b0d5901",
6+
"sample_3.align.daa.tsv:md5,a9ed2f0651d75b318fde07a76b06d7b8",
77
true,
88
true,
99
true
@@ -71,8 +71,8 @@
7171
"sample_1.potential.ARG.normalized.tsv:md5,d6732b4b9765bfa47e27ba673e24b6a4",
7272
"sample_2.ARG.normalized.tsv:md5,1a19b894a7315aaae5f799e4539e6619",
7373
"sample_2.potential.ARG.normalized.tsv:md5,b241e22f9116d8f518ba8526d52ac4dc",
74-
"sample_3.ARG.normalized.tsv:md5,d40d387176649ce80827420fef6a0169",
75-
"sample_3.potential.ARG.normalized.tsv:md5,f331efd21ea143c180a15ae56a5210d3"
74+
"sample_3.ARG.normalized.tsv:md5,d7577c0066a31e173f9cb545820650bf",
75+
"sample_3.potential.ARG.normalized.tsv:md5,6d0889215f0ad7f601502ca67c0ca89e"
7676
],
7777
"meta": {
7878
"nf-test": "0.9.0",

0 commit comments

Comments
 (0)