Skip to content

Commit

Permalink
Add check for taxpasta_add_ and taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 committed Oct 6, 2023
1 parent 671fdf9 commit 2cbd0c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- [#379](https://github.com/nf-core/taxprofiler/pull/379) Added support for previously missing Bracken-corrected Kraken2 report as output (added by @hkaspersen & @jfy133 )
- [#380](https://github.com/nf-core/taxprofiler/pull/380) Updated to nf-core pipeline template v2.10 (added by @LilyAnderssonLee & @sofstam)
- [#393](https://github.com/nf-core/taxprofiler/pull/383) Add validation check for a taxpasta taxonomy directory if --taxpasta*add*\* parameters requested (♥️ to alimalrashed for reporting, added by @jfy133)

### `Fixed`

Expand Down
2 changes: 2 additions & 0 deletions workflows/taxprofiler.nf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ if (params.diamond_save_reads ) log.warn "[nf-core/taxprofiler] DIA
if (params.run_malt && params.run_krona && !params.krona_taxonomy_directory) log.warn "[nf-core/taxprofiler] Krona can only be run on MALT output if path to Krona taxonomy database supplied to --krona_taxonomy_directory. Krona will not be executed in this run for MALT."
if (params.run_bracken && !params.run_kraken2) error('ERROR: [nf-core/taxprofiler] You are attempting to run Bracken without running kraken2. This is not possible! Please set --run_kraken2 as well.')

if ( (params.taxpasta_add_name || params.taxpasta_add_rank || params.taxpasta_add_lineage || params.taxpasta_add_lineage || params.taxpasta_add_idlineage || params.taxpasta_add_ranklineage ) && !params.taxpasta_taxonomy_dir ) error('ERROR: [nf-core/taxprofiler] All --taxpasta_add_* parameters require a taxonomy supplied to --taxpasta_taxonomy_dir. However the latter parameter was not detected. Please check input.')

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG FILES
Expand Down

0 comments on commit 2cbd0c7

Please sign in to comment.