From 42e7643d6bd2e3b26ca35a91c73bfd65e95bb386 Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Mon, 20 Jun 2022 10:20:53 +0300
Subject: Simplify partial correlation method choices
- Have only `Pearson's r` and `Spearman's rho` as the available
choices for the partial correlations.
---
wqflask/wqflask/partial_correlations_views.py | 1 +
.../partial_correlations/pcorrs_select_operations.html | 12 ++----------
2 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/wqflask/wqflask/partial_correlations_views.py b/wqflask/wqflask/partial_correlations_views.py
index ce5e46e0..358a9d3b 100644
--- a/wqflask/wqflask/partial_correlations_views.py
+++ b/wqflask/wqflask/partial_correlations_views.py
@@ -139,6 +139,7 @@ def target_db_error(args, with_target_db: bool):
def method_error(args):
methods = (
+ "pearson's r", "spearman's rho",
"genetic correlation, pearson's r",
"genetic correlation, spearman's rho",
"sgo literature correlation",
diff --git a/wqflask/wqflask/templates/partial_correlations/pcorrs_select_operations.html b/wqflask/wqflask/templates/partial_correlations/pcorrs_select_operations.html
index fc60aa3e..375e792e 100644
--- a/wqflask/wqflask/templates/partial_correlations/pcorrs_select_operations.html
+++ b/wqflask/wqflask/templates/partial_correlations/pcorrs_select_operations.html
@@ -106,16 +106,8 @@
--
cgit v1.2.3