From 6193218b2418663b23336f070e43eaffe2894c8b Mon Sep 17 00:00:00 2001 From: hyi Date: Wed, 26 Jun 2024 09:25:48 -0400 Subject: [PATCH] remove correction request input from default request example --- examples/associations_to_all_features.json | 5 +---- examples/associations_to_all_features2.json | 5 +---- icees_api/handlers.py | 4 ++-- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/examples/associations_to_all_features.json b/examples/associations_to_all_features.json index 6eed009f..af975bda 100644 --- a/examples/associations_to_all_features.json +++ b/examples/associations_to_all_features.json @@ -5,8 +5,5 @@ "value": "Female" } }, - "maximum_p_value": 1, - "correction": { - "method": "bonferroni" - } + "maximum_p_value": 1 } diff --git a/examples/associations_to_all_features2.json b/examples/associations_to_all_features2.json index 73676797..3fa76d3f 100644 --- a/examples/associations_to_all_features2.json +++ b/examples/associations_to_all_features2.json @@ -11,8 +11,5 @@ } ] }, - "maximum_p_value": 1, - "correction": { - "method": "bonferroni" - } + "maximum_p_value": 1 } diff --git a/icees_api/handlers.py b/icees_api/handlers.py index 893caf5e..db27accb 100644 --- a/icees_api/handlers.py +++ b/icees_api/handlers.py @@ -368,7 +368,7 @@ def associations_to_all_features( return {"return value": str(ex)} maximum_p_value = obj.get("maximum_p_value", 1) - correction = obj.get("correction") + correction = obj.get("correction", None) return_value = sql.select_associations_to_all_features( conn, table, @@ -430,7 +430,7 @@ def associations_to_all_features2( if to_validate_range: validate_range(conn, table, feature) maximum_p_value = obj["maximum_p_value"] - correction = obj.get("correction") + correction = obj.get("correction", None) return_value = sql.select_associations_to_all_features( conn, table,