Skip to content

Commit

Permalink
Merge pull request #178 from Daniel-VM/dev
Browse files Browse the repository at this point in the history
Fix bakta running only for one sample
  • Loading branch information
Daniel-VM authored Oct 25, 2024
2 parents 5fbe68d + 5a9559c commit 064996b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### `Fixed`

- [#178](https://github.com/nf-core/bacass/pull/178) Fixed bakta running only for one sample.
- [#169](https://github.com/nf-core/bacass/pull/169) Fixed long reads polishing input channel.
- [#168](https://github.com/nf-core/bacass/pull/168) Fix wrong metadata in canu input channel.
- [#163](https://github.com/nf-core/bacass/pull/163) Fixed `params.save_merged` to properly save merged files.
Expand Down
11 changes: 5 additions & 6 deletions subworkflows/local/bakta_dbdownload_run.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@ workflow BAKTA_DBDOWNLOAD_RUN {

// MODULE: untar database
UNTAR( ch_baktadb_tar )
ch_baktadb = UNTAR.out.untar.map{ meta, db -> db }
ch_path_baktadb = UNTAR.out.untar.map{ meta, db -> db }
ch_versions = ch_versions.mix(UNTAR.out.versions)
} else {
ch_baktadb = Channel.from(ch_path_baktadb).map{ db -> db }
}
} else if (!ch_path_baktadb && val_baktadb_download){
// MODULE: Downlado Bakta database from zenodo
BAKTA_BAKTADBDOWNLOAD()
ch_baktadb = BAKTA_BAKTADBDOWNLOAD.out.db
ch_versions = ch_versions.mix(BAKTA_BAKTADBDOWNLOAD.out.versions)
ch_path_baktadb = BAKTA_BAKTADBDOWNLOAD.out.db
ch_versions = ch_versions.mix(BAKTA_BAKTADBDOWNLOAD.out.versions)

} else if (!ch_path_baktadb && !val_baktadb_download ){
exit 1, "The Bakta database argument is missing. To enable the workflow to access the Bakta database, please include the path using '--baktadb' or use '--bakdtadb_download true' to download the Bakta database."
Expand All @@ -43,9 +41,10 @@ workflow BAKTA_DBDOWNLOAD_RUN {
//
// MODULE: BAKTA, gene annotation
//
// Setup input channel for Bakta process
BAKTA_BAKTA (
ch_fasta,
ch_baktadb,
ch_path_baktadb,
[],
[]
)
Expand Down

0 comments on commit 064996b

Please sign in to comment.