From 951c98a59c72ee675346335b74f03db2de188345 Mon Sep 17 00:00:00 2001 From: Mahesh Binzer-Panchal Date: Thu, 28 Sep 2023 12:59:27 +0000 Subject: [PATCH] Fix functional annotation subworkflow from module change --- subworkflows/functional_annotation/main.nf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subworkflows/functional_annotation/main.nf b/subworkflows/functional_annotation/main.nf index 65df7a2..3625dd8 100644 --- a/subworkflows/functional_annotation/main.nf +++ b/subworkflows/functional_annotation/main.nf @@ -26,9 +26,9 @@ workflow FUNCTIONAL_ANNOTATION { // No database files found matching the glob pattern } make_db : db_files.size() == 1 - return db_files + return [ [ db: fasta.baseName ] , db_files ] with_db : db_files.size() > 1 - return db_files + return [ [ db: fasta.baseName ] , db_files ] }.set { ch_blast_fa } BLAST_MAKEBLASTDB( @@ -41,7 +41,7 @@ workflow FUNCTIONAL_ANNOTATION { ) BLAST_BLASTP( GFF2PROTEIN.out.proteins.splitFasta( by: params.records_per_file, file: true ), - blastdb_ch.collect() + blastdb_ch.map{ meta, db -> db }.collect() ) INTERPROSCAN( GFF2PROTEIN.out.proteins.splitFasta( by: params.records_per_file, file: true ) ) MERGE_FUNCTIONAL_ANNOTATION(