From f0ccff2a90d760fc0b268e715e0c6c673ff64e15 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Tue, 20 Apr 2021 01:46:45 +0300 Subject: pep8 formatting --- gn3/computations/correlations.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gn3') diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py index 66a2034..4432971 100644 --- a/gn3/computations/correlations.py +++ b/gn3/computations/correlations.py @@ -449,13 +449,11 @@ def experimental_compute_all_tissue_correlation(primary_tissue_dict: dict, processed_values = [] for target_tissue_obj in target_tissues_list: - trait_id = target_tissue_obj.get("trait_id") target_tissue_vals = target_tissue_obj.get("tissue_values") processed_values.append( (primary_tissue_vals, target_tissue_vals, corr_method)) - tissue_results = [] with multiprocessing.Pool() as pool: results = pool.starmap( tissue_correlation_for_trait_list, processed_values) @@ -471,8 +469,6 @@ def experimental_compute_all_tissue_correlation(primary_tissue_dict: dict, # tissue_result_dict = {trait_id: tissue_result} # tissues_results.append(tissue_result_dict) - sorted_tissues_results = sorted( + return sorted( tissues_results, key=lambda trait_name: -abs(list(trait_name.values())[0]["tissue_corr"])) - - return sorted_tissues_results -- cgit v1.2.3