aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/partial_correlations.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py
index 1cc969c..3633a59 100644
--- a/gn3/computations/partial_correlations.py
+++ b/gn3/computations/partial_correlations.py
@@ -628,6 +628,12 @@ def partial_correlations_entry(# pylint: disable=[R0913, R0914, R0911]
return {
"status": "not-found",
"message": "None of the requested control traits were found."}
+ for trait in cntrl_traits:
+ if trait["haveinfo"] == False:
+ warnings.warn(
+ (f"Control traits {trait['trait_fullname']} was not found "
+ "- continuing without it."),
+ category=UserWarning)
group = primary_trait["db"]["group"]
primary_trait_data = all_traits_data[primary_trait["trait_name"]]