aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorAlexander Kabui2021-11-29 10:23:02 +0300
committerBonfaceKilz2021-12-10 09:58:29 +0300
commit3e22ff2d9f21316060893d47f0b014bdaf4ab359 (patch)
tree95c691c0fd43b9df01c51fd4652ae97a13e9e98a /gn3
parentf32eb3269733345da8e0e7149a47ba33be11d611 (diff)
downloadgenenetwork3-3e22ff2d9f21316060893d47f0b014bdaf4ab359.tar.gz
rename variables
Diffstat (limited to 'gn3')
-rw-r--r--gn3/computations/correlations.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py
index 7c53563..15ee1fa 100644
--- a/gn3/computations/correlations.py
+++ b/gn3/computations/correlations.py
@@ -75,17 +75,17 @@ def compute_sample_r_correlation(trait_name, corr_method, trait_vals,
"""
try:
- sanitized_traits_vals, sanitized_target_vals = list(
+ normalized_traits_vals, normalized_target_vals = list(
zip(*list(normalize_values(trait_vals, target_samples_vals))))
- num_overlap = len(sanitized_traits_vals)
+ num_overlap = len(normalized_traits_vals)
except ValueError:
return
if num_overlap > 5:
(corr_coefficient, p_value) =\
- compute_corr_coeff_p_value(primary_values=sanitized_traits_vals,
- target_values=sanitized_target_vals,
+ compute_corr_coeff_p_value(primary_values=normalized_traits_vals,
+ target_values=normalized_target_vals,
corr_method=corr_method)
if corr_coefficient is not None and not math.isnan(corr_coefficient):