Skip to content

Commit c59b366

Browse files
authored
Merge pull request #914 from d4straub/reviewer-2-15-0
Better explain --truncq / truncQ
2 parents 6ac6f8f + 73b4aa2 commit c59b366

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### `Added`
99

10+
- [#909](https://github.com/nf-core/ampliseq/pull/909),[#914](https://github.com/nf-core/ampliseq/pull/914) - Parameter `--truncq` allows read truncation by quality score, where each read is truncated at the first instance of a quality score less than or equal to `truncq` (default value is 2). This quality score-based truncation occurs before read length truncation. If `--trunc_qmin` and `--trunc_rmin` are used to automatically calculate the values for `trunclenf` and `trunclenr` used for read length truncation, those calculations are based on the read metrics before quality score-based truncation (using `truncq`) is performed. `truncq` is passed directly as `truncQ` into DADA2's [filterAndTrim](https://rdrr.io/bioc/dada2/man/filterAndTrim.html) method.
1011
- [#913](https://github.com/nf-core/ampliseq/pull/913) - Parameter `--dada_min_boot` allows the user to specify a minimum bootstrap confidence (out of 100 trials) for assigning a taxonomic level with DADA2's [assignTaxonomy](https://rdrr.io/bioc/dada2/man/assignTaxonomy.html) method.
11-
- [#909](https://github.com/nf-core/ampliseq/pull/909) - Parameter `--truncq` allows read truncation by quality score, where each read is truncated at the first instance of a quality score less than or equal to `truncq` (default value is 2). This quality score-based truncation occurs before read length truncation. If `--trunc_qmin` and `--trunc_rmin` are used to automatically calculate the values for `trunclenf` and `trunclenr` used for read length truncation, those calculations are based on the read metrics before quality score-based truncation (using `truncq`) is performed. `truncq` is passed directly as `truncQ` into DADA2's [filterAndTrim](https://rdrr.io/bioc/dada2/man/filterAndTrim.html) method.
1212

1313
### `Changed`
1414

1515
- [#903](https://github.com/nf-core/ampliseq/pull/903) - Corrects a broken link for _midori2-co1_ database.
1616

1717
### `Fixed`
1818

19-
- [#906](https://github.com/nf-core/ampliseq/pull/906) - Fix `--mergepairs_strategy "consensus"` causing an error in dada2_stats when analysing a run composed by only one sample
2019
- [#893](https://github.com/nf-core/ampliseq/pull/893),[#896](https://github.com/nf-core/ampliseq/pull/896),[#905](https://github.com/nf-core/ampliseq/pull/905),[#912](https://github.com/nf-core/ampliseq/pull/912) - Template update for nf-core/tools version 3.3.2 and reorganization of nf-test
21-
- [#897](https://github.com/nf-core/ampliseq/pull/897) - Allow multiple region analysis with one sample
20+
- [#897](https://github.com/nf-core/ampliseq/pull/897) - Allow multiple region analysis with one sample.
2221
- [#899](https://github.com/nf-core/ampliseq/pull/899) - With `--dada_ref_tax_custom` all chunks defined by `--dada_assign_chunksize` are now taxonomically annotated.
2322
- [#904](https://github.com/nf-core/ampliseq/pull/904) - Update `untar` module.
23+
- [#906](https://github.com/nf-core/ampliseq/pull/906) - Fix `--mergepairs_strategy "consensus"` causing an error in dada2_stats when analysing a run composed by only one sample.
2424

2525
### `Dependencies`
2626

nextflow_schema.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@
208208
"default": 2,
209209
"fa_icon": "fas fa-greater-than-equal",
210210
"minimum": 0,
211-
"description": "Truncate each read at the first instance of a quality score less than or equal to truncq. Applied before read length truncation."
211+
"description": "Truncate each read at the first instance of a quality score less than or equal to `--truncq`.",
212+
"help_text": "Applied before read length truncation, but in the same step as read length truncation. The parameter is equivalent to `truncQ` in DADA2's filterAndTrim method. `--truncq` defaults to 2, which was already the default previously. If `--trunc_qmin` and `--trunc_rmin` are used to automatically calculate `--trunclenf` and `--trunclenr`, these values are determined using the read metrics calculated on the read input before DADA2 filterAndTrim is called, and so before `--truncq` is applied."
212213
},
213214
"trunclenf": {
214215
"type": "integer",
@@ -411,14 +412,6 @@
411412
"fa_icon": "fas fa-database",
412413
"description": "Choose a method and database for taxonomic assignments to single-region amplicons",
413414
"properties": {
414-
"dada_min_boot": {
415-
"type": "integer",
416-
"default": 50,
417-
"fa_icon": "fas fa-greater-than-equal",
418-
"description": "The minimum bootstrap confidence (out of 100 trials) for assigning a taxonomic level with DADA2. Matches `minBoot` in DADA2's assignTaxonomy method.",
419-
"minimum": 0,
420-
"maximum": 100
421-
},
422415
"dada_ref_taxonomy": {
423416
"type": "string",
424417
"help_text": "Choose any of the supported databases, and optionally also specify the version. Database and version are separated by an equal sign (`=`, e.g. `silva=138`) . This will download the desired database, format it to produce a file that is compatible with DADA2's assignTaxonomy and another file that is compatible with DADA2's addSpecies.\n\nThe following databases are supported:\n- GTDB - Genome Taxonomy Database - 16S rRNA\n- SBDI-GTDB, a Sativa-vetted version of the GTDB 16S rRNA\n- PR2 - Protist Reference Ribosomal Database - 18S rRNA\n- RDP - Ribosomal Database Project - 16S rRNA\n- SILVA ribosomal RNA gene database project - 16S rRNA\n- UNITE - eukaryotic nuclear ribosomal ITS region - ITS\n- COIDB - eukaryotic Cytochrome Oxidase I (COI) from The Barcode of Life Data System (BOLD) - COI\n\nGenerally, using `gtdb`, `pr2`, `rdp`, `sbdi-gtdb`, `silva`, `coidb`, `unite-fungi`, or `unite-alleuk` will select the most recent supported version.\n\nPlease note that commercial/non-academic entities [require licensing](https://www.arb-silva.de/silva-license-information) for SILVA v132 database (non-default) but not from v138 on (default).",
@@ -481,6 +474,14 @@
481474
"help_text": "Requires `--dada_ref_tax_custom`. Must be compatible to DADA2's addSpecies function: 'Can be compressed. This reference fasta file should be formatted so that the id lines correspond to the genus-species binomial of the associated sequence.' See also https://rdrr.io/bioc/dada2/man/addSpecies.html",
482475
"description": "Path to a custom DADA2 reference taxonomy database for species assignment"
483476
},
477+
"dada_min_boot": {
478+
"type": "integer",
479+
"default": 50,
480+
"fa_icon": "fas fa-greater-than-equal",
481+
"description": "The minimum bootstrap confidence (out of 100 trials) for assigning a taxonomic level with DADA2. Matches `minBoot` in DADA2's assignTaxonomy method.",
482+
"minimum": 0,
483+
"maximum": 100
484+
},
484485
"dada_assign_taxlevels": {
485486
"type": "string",
486487
"help_text": "Typically useful when providing a custom DADA2 reference taxonomy database with `--dada_ref_tax_custom`. If DADA2's addSpecies is used (default), the last element(s) of the comma separated string must be 'Genus' or 'Genus,Species'.",

subworkflows/local/qiime2_preptax.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ workflow QIIME2_PREPTAX {
6666
ch_qiime_db_dir = ch_qiime_db_dir.mix(ch_qiime_ref_tax_branched.dir)
6767

6868
ch_ref_database_fna = ch_qiime_db_dir.map{ dir ->
69-
files = file(dir.resolve("*.fna"), checkIfExists: true)
69+
def files = file(dir.resolve("*.fna"), checkIfExists: true)
7070
} | filter { it ->
7171
if (it.size() > 1) log.warn "Found multiple fasta files for QIIME2 reference database."
7272
it.size() == 1
7373
}
7474
ch_ref_database_tax = ch_qiime_db_dir.map{ dir ->
75-
files = file(dir.resolve("*.tax"), checkIfExists: true)
75+
def files = file(dir.resolve("*.tax"), checkIfExists: true)
7676
} | filter { it ->
7777
if (it.size() > 1) log.warn "Found multiple tax files for QIIME2 reference database."
7878
it.size() == 1

0 commit comments

Comments
 (0)