Skip to content

Commit

Permalink
gtdbtk: add check when params.busco_db is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
dialvarezs committed Nov 28, 2024
1 parent 49ebb71 commit 4ecd36f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions subworkflows/local/gtdbtk.nf
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ workflow GTDBTK {
def completeness = -1
def contamination = -1
def missing, duplicated
def busco_db = file(params.busco_db)
if (busco_db.getBaseName().contains('odb10')) {
if (params.busco_db && file(params.busco_db).getBaseName().contains('odb10')) {
missing = row.'%Missing (specific)' // TODO or just take '%Complete'?
duplicated = row.'%Complete and duplicated (specific)'
} else {
Expand Down

0 comments on commit 4ecd36f

Please sign in to comment.