From 3e22ff2d9f21316060893d47f0b014bdaf4ab359 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Mon, 29 Nov 2021 10:23:02 +0300 Subject: rename variables --- gn3/computations/correlations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gn3/computations') 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): -- cgit v1.2.3