From 890f44cca27169b91db63844501cae4acb133f86 Mon Sep 17 00:00:00 2001 From: Daniel-VM Date: Thu, 24 Oct 2024 13:59:20 +0200 Subject: [PATCH] fix bakta running only for one sample --- subworkflows/local/bakta_dbdownload_run.nf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/subworkflows/local/bakta_dbdownload_run.nf b/subworkflows/local/bakta_dbdownload_run.nf index 675adcbe..6822ba67 100644 --- a/subworkflows/local/bakta_dbdownload_run.nf +++ b/subworkflows/local/bakta_dbdownload_run.nf @@ -43,9 +43,14 @@ workflow BAKTA_DBDOWNLOAD_RUN { // // MODULE: BAKTA, gene annotation // + // Setup input channel for Bakta process + ch_fasta + .combine(ch_baktadb) + .set{ ch_to_bakta } + ch_to_bakta.view() BAKTA_BAKTA ( - ch_fasta, - ch_baktadb, + ch_to_bakta.map{ meta, fasta, bakta_db -> [meta, fasta] }, + ch_to_bakta.map{ meta, fasta, bakta_db -> bakta_db }, [], [] )