Skip to content

Commit

Permalink
Handle skip_binqc properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dialvarezs committed Dec 5, 2024
1 parent f75e9c4 commit d176fce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions subworkflows/local/bin_qc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ workflow BIN_QC {
if (params.checkm_db) {
ch_checkm_db = file(params.checkm_db, checkIfExists: true)
}
else if (!params.skip_binqc && params.binqc_tool == 'checkm') {
else if (params.binqc_tool == 'checkm') {
ARIA2_UNTAR(params.checkm_download_url)
ch_checkm_db = ARIA2_UNTAR.out.downloaded_file
}
Expand All @@ -55,7 +55,7 @@ workflow BIN_QC {
if (params.checkm2_db) {
ch_checkm2_db = [[:], file(params.checkm2_db, checkIfExists: true)]
}
else if (!params.skip_binqc && params.binqc_tool == 'checkm2') {
else if (params.binqc_tool == 'checkm2') {
CHECKM2_DATABASEDOWNLOAD(params.checkm2_db_version)
ch_checkm2_db = CHECKM2_DATABASEDOWNLOAD.out.database
}
Expand Down
8 changes: 5 additions & 3 deletions workflows/mag.nf
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,12 @@ workflow MAG {
* Bin QC subworkflows: for checking bin completeness with either BUSCO, CHECKM, CHECKM2, and/or GUNC
*/

BIN_QC(ch_input_for_postbinning)
if (!params.skip_binqc) {
BIN_QC(ch_input_for_postbinning)

ch_bin_qc_summary = BIN_QC.out.qc_summary
ch_versions = ch_versions.mix(BIN_QC.out.versions)
ch_bin_qc_summary = BIN_QC.out.qc_summary
ch_versions = ch_versions.mix(BIN_QC.out.versions)
}

ch_quast_bins_summary = Channel.empty()
if (!params.skip_quast) {
Expand Down

0 comments on commit d176fce

Please sign in to comment.