Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more conditions in gwas function #153

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/argowrapper/workflows/argo_workflows/gwas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
Loading