diff --git a/tasks/quality_control/task_qc_check_phb.wdl b/tasks/quality_control/task_qc_check_phb.wdl index 9acfee08b..66fbb3df9 100644 --- a/tasks/quality_control/task_qc_check_phb.wdl +++ b/tasks/quality_control/task_qc_check_phb.wdl @@ -505,6 +505,7 @@ task qc_check_phb_waphl { if "~{est_coverage_raw}" and qc_check == "PASS": if float("~{est_coverage_raw}") < float(qc_check_df.loc["~{predicted_taxon}", "est_coverage_raw"]): qc_check = "FAIL" + if "~{number_N}" and "~{number_Total}" and qc_check == "PASS": perc_N = int("~{number_N}")/int("~{number_Total}") if perc_N >= float(qc_check_df.loc["~{predicted_taxon}", "perc_N"]):