Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusted handling of compressed tar archive containing kraken2 database #54

Merged
merged 2 commits into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fix missing MultiQC when `--skip_quast` or `--skip_busco` was specified
- Fix missing channels when `--keep_phix` is specified
- Added missing parameters to summary
- Updated links to minikraken db
- Fixed kraken2 dp preparation: allow different names for compressed archive file and contained folder as for some minikraken dbs

### `Deprecated`

Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Database for taxonomic binning with centrifuge (default: none). E.g. "<ftp://ftp

### `--kraken2_db`

Database for taxonomic binning with kraken2 (default: none). E.g. "<ftp://ftp.ccb.jhu.edu/pub/data/kraken2_dbs/minikraken2_v2_8GB_201904_UPDATE.tgz>"
Database for taxonomic binning with kraken2 (default: none). E.g. "<ftp://ftp.ccb.jhu.edu/pub/data/kraken2_dbs/minikraken_8GB_202003.tgz>"

### `--cat_db`

Expand Down
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def helpMessage() {

Taxonomy:
--centrifuge_db [file] Database for taxonomic binning with centrifuge (default: none). E.g. "ftp://ftp.ccb.jhu.edu/pub/infphilo/centrifuge/data/p_compressed+h+v.tar.gz"
--kraken2_db [file] Database for taxonomic binning with kraken2 (default: none). E.g. "ftp://ftp.ccb.jhu.edu/pub/data/kraken2_dbs/minikraken2_v2_8GB_201904_UPDATE.tgz"
--kraken2_db [file] Database for taxonomic binning with kraken2 (default: none). E.g. "ftp://ftp.ccb.jhu.edu/pub/data/kraken2_dbs/minikraken_8GB_202003.tgz"
--skip_krona [bool] Skip creating a krona plot for taxonomic binning
--cat_db [file] Database for taxonomic classification of metagenome assembled genomes (default: none). E.g. "tbb.bio.uu.nl/bastiaan/CAT_prepare/CAT_prepare_20190108.tar.gz"
The zipped file needs to contain a folder named "*taxonomy*" and "*CAT_database*" that hold the respective files.
Expand Down Expand Up @@ -777,7 +777,7 @@ process kraken2_db_preparation {
file(db) from file_kraken2_db

output:
set val("${db.baseName}"), file("${db.baseName}/*.k2d") into kraken2_database
set val("${db.baseName}"), file("*/*.k2d") into kraken2_database

script:
"""
Expand Down