Skip to content

Commit 72ccfd4

Browse files
authored
Merge pull request #153 from uc-cdis/wangfan860-patch-1
add more conditions in gwas function
2 parents 5308586 + 4389149 commit 72ccfd4

File tree

1 file changed

+2
-2
lines changed
  • src/argowrapper/workflows/argo_workflows

1 file changed

+2
-2
lines changed

src/argowrapper/workflows/argo_workflows/gwas.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ def interpret_gwas_workflow_error(step_name: str, step_log: str) -> str:
199199
"""A static method to interpret the error message in the main-log file
200200
of Failed Retry node
201201
"""
202-
if step_name == "run-null-model" and "system is exactly singular" in step_log:
202+
if step_name in ["run-null-model", "run-single-assoc"] and "system is exactly singular" in step_log:
203203
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."
204204
elif (
205-
step_name == "run-single-assoc"
205+
step_name in ["run-null-model", "run-single-assoc"]
206206
and "system is computationally singular" in step_log
207207
):
208208
show_error = "The error occurred due to unbalanced cohort sizes. Please ensure that the sizes of the cohorts are as balanced as possible."

0 commit comments

Comments
 (0)