diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f325c2..f9b00e9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/workflows/taxprofiler.nf b/workflows/taxprofiler.nf index f3abea4e..b54f9109 100644 --- a/workflows/taxprofiler.nf +++ b/workflows/taxprofiler.nf @@ -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