about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Kabui2021-05-13 08:28:15 +0300
committerBonfaceKilz2021-05-13 12:03:46 +0300
commit01582f853420c6775bb891675fd2039a7fd5b3b8 (patch)
tree482df11863e81a51c3a1ac1471733bafbe3bb767
parent75b4e74dede48c59e07d8f15d2db4b5d6289c064 (diff)
downloadgenenetwork2-01582f853420c6775bb891675fd2039a7fd5b3b8.tar.gz
pep8 formatting & delete comments
-rw-r--r--wqflask/wqflask/correlation/correlation_gn3_api.py24
1 files changed, 7 insertions, 17 deletions
diff --git a/wqflask/wqflask/correlation/correlation_gn3_api.py b/wqflask/wqflask/correlation/correlation_gn3_api.py
index dec84728..46202ca3 100644
--- a/wqflask/wqflask/correlation/correlation_gn3_api.py
+++ b/wqflask/wqflask/correlation/correlation_gn3_api.py
@@ -180,25 +180,15 @@ def compute_correlation(start_vars, method="pearson"):
 
     correlation_results = correlation_results[0:corr_return_results]
 
-    compute_all = True
+    compute_all = True  # later to  be passed as argument
 
-    correlation_results = compute_corr_for_top_results(correlation_results,
-                                                       this_trait,
-                                                       this_dataset,
-                                                       target_dataset,
-                                                       corr_type)
+    if (compute_all):
 
-    # if corr_type != "tissue" and this_dataset_type == "ProbeSet" and target_dataset_type == "ProbeSet":
-
-    #     tissue_result = tissue_for_trait_lists(
-    #         correlation_results, this_dataset, this_trait)
-
-    # if corr_type != "lit" and this_dataset_type == "ProbeSet" and target_dataset_type == "ProbeSet":
-    #     lit_result = lit_for_trait_list(
-    #         correlation_results, this_dataset, this_trait)
-
-    # if corr_type != "sample":
-    #     pass
+        correlation_results = compute_corr_for_top_results(correlation_results,
+                                                           this_trait,
+                                                           this_dataset,
+                                                           target_dataset,
+                                                           corr_type)
 
     correlation_data = {"correlation_results": correlation_results,
                         "this_trait": this_trait.name,