diff options
author | Alexander Kabui | 2021-05-13 08:28:15 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-05-13 12:03:46 +0300 |
commit | 01582f853420c6775bb891675fd2039a7fd5b3b8 (patch) | |
tree | 482df11863e81a51c3a1ac1471733bafbe3bb767 | |
parent | 75b4e74dede48c59e07d8f15d2db4b5d6289c064 (diff) | |
download | genenetwork2-01582f853420c6775bb891675fd2039a7fd5b3b8.tar.gz |
pep8 formatting & delete comments
-rw-r--r-- | wqflask/wqflask/correlation/correlation_gn3_api.py | 24 |
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, |