diff --git a/subworkflows/local/gtdbtk.nf b/subworkflows/local/gtdbtk.nf index e2ee580b..d3d66d47 100644 --- a/subworkflows/local/gtdbtk.nf +++ b/subworkflows/local/gtdbtk.nf @@ -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 {