Skip to content

Commit

Permalink
Fix functional annotation subworkflow from module change
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-panchal committed Sep 28, 2023
1 parent 8e24fa3 commit 951c98a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions subworkflows/functional_annotation/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 951c98a

Please sign in to comment.