aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorAlexander Kabui2021-11-11 00:31:48 +0300
committerBonfaceKilz2021-11-11 09:20:26 +0300
commitfa1af0daa093e80a2c235f0294d7fe61a5b65b4b (patch)
tree122a75aab8f5ac803d266de95c9c2a4dc64e31fa /gn3/computations
parente9fb78b5bc43bd8c63b8b790f0f3fe826051fbe7 (diff)
downloadgenenetwork3-fa1af0daa093e80a2c235f0294d7fe61a5b65b4b.tar.gz
pylint fixes and pep8 formatting
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/correlations.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py
index 4987571..c5c56db 100644
--- a/gn3/computations/correlations.py
+++ b/gn3/computations/correlations.py
@@ -134,9 +134,9 @@ def fast_compute_all_sample_correlation(this_trait,
for target_trait in target_dataset:
trait_name = target_trait.get("trait_id")
target_trait_data = target_trait["trait_sample_data"]
- processed_values.append((trait_name, corr_method, *list(zip(*list(filter_shared_sample_keys(
- this_trait_samples, target_trait_data))))
- ))
+ processed_values.append((trait_name, corr_method,
+ list(zip(*list(filter_shared_sample_keys(
+ this_trait_samples, target_trait_data))))))
with closing(multiprocessing.Pool()) as pool:
results = pool.starmap(compute_sample_r_correlation, processed_values)
@@ -170,8 +170,6 @@ def compute_all_sample_correlation(this_trait,
target_trait_data = target_trait["trait_sample_data"]
this_vals, target_vals = list(zip(*list(filter_shared_sample_keys(
this_trait_samples, target_trait_data))))
- # this_vals, target_vals = filter_shared_sample_keys(
- # this_trait_samples, target_trait_data)
sample_correlation = compute_sample_r_correlation(
trait_name=trait_name,