Skip to content

Commit

Permalink
Add busco error strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
dialvarezs committed Nov 1, 2024
1 parent da52285 commit 4007932
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ process {
withName: MAG_DEPTHS {
memory = { 16.GB * task.attempt }
}
//BUSCO can fail when there are no hits
withName: BUSCO {
cpus = { 8 * task.attempt }
memory = { 20.GB * task.attempt }
errorStrategy = { task.exitStatus in (130..145) ? 'retry' : task.exitStatus == 1 ? 'ignore' : 'finish' }
}
withName: MAXBIN2 {
errorStrategy = { task.exitStatus in [1, 255] ? 'ignore' : 'retry' }
Expand Down
5 changes: 2 additions & 3 deletions subworkflows/local/bin_qc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ workflow BIN_QC {
ch_bins // [ [ meta] , fasta ], input bins (mandatory)
ch_checkm_db // [ db ], presupplied CheckM database (optional)
ch_checkm2_db // [ [meta] , db ], presupplied CheckM2 database (optional)
ch_busco_db // [ db ], presupplied BUSCO database (optional)
ch_busco_db // [ [meta] , db ], presupplied BUSCO database (optional)
ch_gunc_db // [ db ], presupplied GUNC database (optional)

main:
Expand Down Expand Up @@ -57,8 +57,7 @@ workflow BIN_QC {
else {
// Set BUSCO database to empty to allow for --auto-lineage
ch_db_for_busco = Channel
.of([])
.map { _empty_db -> [[lineage: ''], []] }
.of([[lineage: ''], []])
.collect()
}

Expand Down

0 comments on commit 4007932

Please sign in to comment.