Skip to content

Commit

Permalink
Cleaned up the busco_db parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed May 19, 2024
1 parent 8a6e928 commit 489312a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subworkflows/local/busco_diamond_blastp.nf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ workflow BUSCO_DIAMOND {
ch_fasta_with_lineage,
"genome",
ch_fasta_with_lineage.map { it[0].lineage_name },
busco_db.collect().ifEmpty([]),
busco_db,
[],
)
ch_versions = ch_versions.mix ( BUSCO.out.versions.first() )
Expand Down
2 changes: 1 addition & 1 deletion workflows/blobtoolkit.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (params.taxdump) { ch_taxdump = file(params.taxdump) } else { exit 1, 'NCBI T
if (params.fetchngs_samplesheet && !params.align) { exit 1, '--align not specified, even though the input samplesheet is a nf-core/fetchngs one - i.e has fastq files!' }

// Create channel for optional parameters
if (params.busco_db) { ch_busco_db = Channel.fromPath(params.busco_db) } else { ch_busco_db = Channel.empty() }
if (params.busco_db) { ch_busco_db = Channel.fromPath(params.busco_db).first() } else { ch_busco_db = Channel.value([]) }
if (params.yaml) { ch_yaml = Channel.fromPath(params.yaml) } else { ch_yaml = Channel.empty() }
if (params.yaml && params.accession) { exit 1, '--yaml cannot be provided at the same time as --accession !' }
if (!params.yaml && !params.accession) { exit 1, '--yaml and --accession are both mising. Pick one !' }
Expand Down

0 comments on commit 489312a

Please sign in to comment.