Skip to content

Commit

Permalink
Merge branch 'dev' into anaconda_purge_2
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Nov 25, 2024
2 parents 1342ba0 + 6fe1861 commit d3fbb42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ The BlobToolKit pipeline can be run in many different ways. The default way requ

It is a good idea to put a date suffix for each database location so you know at a glance whether you are using the latest version. We are using the `YYYY_MM` format as we do not expect the databases to be updated more frequently than once a month. However, feel free to use `DATE=YYYY_MM_DD` or a different format if you prefer.

Note that all input databases may be optionall passed directly to the pipeline compressed as `.tar.gz`, and the pipeline will handle decompression.
Note that all input databases may be optionally passed directly to the pipeline compressed as `.tar.gz`, and the pipeline will handle decompression.
The instructions below show how to build each input database in _two_ forms: decompressed _and_ compressed. You may not need to do both. Select the one that is most appropriate for how you want to use the pipeline.

#### 1. NCBI taxdump database

Expand Down
6 changes: 3 additions & 3 deletions modules/local/generate_config.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ process GENERATE_CONFIG {
val busco_lin
path lineage_tax_ids
val reads
tuple val(meta2), path(blastp)
tuple val(meta3), path(blastx)
tuple val(meta4), path(blastn)
tuple val(meta2), path(blastp, stageAs: 'blastp/*')
tuple val(meta3), path(blastx, stageAs: 'blastx/*')
tuple val(meta4), path(blastn, stageAs: 'blastn/*')
tuple val(meta5), path(taxdump)

output:
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/input_check.nf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ workflow INPUT_CHECK {
ch_databases = UNTAR.out.untar.concat( ch_dbs_for_untar.skip )
.map { meta, db -> [ meta + [id: db.baseName], db] }
.map { db_meta, db_path ->
if (db_meta.type in ["blastp", "blastx"]) {
if (db_meta.type in ["blastp", "blastx"] && db_path.isDirectory()) {
[db_meta, file(db_path.toString() + "/${db_path.name}", checkIfExists: true)]
} else {
[db_meta, db_path]
Expand Down

0 comments on commit d3fbb42

Please sign in to comment.