From 4389149b86a1980b73e22479ff884cc2a918c998 Mon Sep 17 00:00:00 2001 From: Fan Wang Date: Tue, 12 Nov 2024 09:59:05 -0600 Subject: [PATCH] add more conditions in gwas function https://cdis.slack.com/archives/C01A12E8NUR/p1731421219821819 --- src/argowrapper/workflows/argo_workflows/gwas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/argowrapper/workflows/argo_workflows/gwas.py b/src/argowrapper/workflows/argo_workflows/gwas.py index bf68f9f..62ad2d6 100644 --- a/src/argowrapper/workflows/argo_workflows/gwas.py +++ b/src/argowrapper/workflows/argo_workflows/gwas.py @@ -199,10 +199,10 @@ def interpret_gwas_workflow_error(step_name: str, step_log: str) -> str: """A static method to interpret the error message in the main-log file of Failed Retry node """ - if step_name == "run-null-model" and "system is exactly singular" in step_log: + if step_name in ["run-null-model", "run-single-assoc"] and "system is exactly singular" in step_log: show_error = "The error occurred due to small cohort size or unbalanced cohort sizes. Please ensure that the cohorts selected for your analysis are sufficiently large and balanced." elif ( - step_name == "run-single-assoc" + step_name in ["run-null-model", "run-single-assoc"] and "system is computationally singular" in step_log ): show_error = "The error occurred due to unbalanced cohort sizes. Please ensure that the sizes of the cohorts are as balanced as possible."