Skip to content

Commit

Permalink
Merge pull request #125 from sanger-tol/db_params
Browse files Browse the repository at this point in the history
bugfix when running the pipeline on uncompressed databases
  • Loading branch information
muffato authored Nov 22, 2024
2 parents 301bcff + 127ea41 commit 01007ab
Showing 1 changed file with 1 addition and 1 deletion.
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 01007ab

Please sign in to comment.