Skip to content

Commit

Permalink
This should be value channel
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed May 19, 2024
1 parent 5ed9770 commit 8a6e928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflows/blobtoolkit.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ for (param in checkPathParamList) { if (param) { file(param, checkIfExists: true
// Check mandatory parameters
if (params.input) { ch_input = file(params.input) } else { exit 1, 'Input samplesheet not specified!' }
if (params.fasta) { ch_fasta = Channel.value([ [ 'id': params.accession ?: file(params.fasta).baseName ], file(params.fasta) ]) } else { exit 1, 'Genome fasta file must be specified!' }
if (params.taxon) { ch_taxon = Channel.of(params.taxon) } else { exit 1, 'NCBI Taxon ID not specified!' }
if (params.taxon) { ch_taxon = Channel.value(params.taxon) } else { exit 1, 'NCBI Taxon ID not specified!' }
if (params.blastp) { ch_blastp = Channel.value([ [ 'id': file(params.blastp).baseName ], params.blastp ]) } else { exit 1, 'Diamond BLASTp database must be specified!' }
if (params.blastx) { ch_blastx = Channel.value([ [ 'id': file(params.blastx).baseName ], params.blastx ]) } else { exit 1, 'Diamond BLASTx database must be specified!' }
if (params.blastn) { ch_blastn = Channel.value([ [ 'id': file(params.blastn).baseName ], params.blastn ]) } else { exit 1, 'BLASTn database not specified!' }
Expand Down

0 comments on commit 8a6e928

Please sign in to comment.