aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-11-16 19:43:15 +0300
committerAlexander Kabui2021-11-16 19:43:15 +0300
commit4725a8c20d1d4209d59b3b113f00bbc467c5bd31 (patch)
treed0e5c313548c1e64f178f8f5a7cfe56f1f4c40ca
parenta8ccaf03ba151f9ceca2f0224af33db230a8c8b3 (diff)
downloadgenenetwork2-4725a8c20d1d4209d59b3b113f00bbc467c5bd31.tar.gz
init disable fast compute:memory fork issues
-rw-r--r--wqflask/wqflask/correlation/correlation_gn3_api.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/wqflask/wqflask/correlation/correlation_gn3_api.py b/wqflask/wqflask/correlation/correlation_gn3_api.py
index 191a748a..635ef5ed 100644
--- a/wqflask/wqflask/correlation/correlation_gn3_api.py
+++ b/wqflask/wqflask/correlation/correlation_gn3_api.py
@@ -194,20 +194,8 @@ def compute_correlation(start_vars, method="pearson", compute_all=False):
(this_trait_data, target_dataset_data) = fetch_sample_data(
start_vars, this_trait, this_dataset, target_dataset)
- correlation_results = fetch_precompute_results(
- this_dataset.name, target_dataset.name, this_dataset.type, this_trait.name)
-
- if correlation_results is None:
- correlation_results = fast_compute_all_sample_correlation(corr_method=method,
- this_trait=this_trait_data,
- target_dataset=target_dataset_data)
-
- cache_compute_results(this_dataset.type,
- this_dataset.name,
- target_dataset.name,
- corr_method,
- correlation_results,
- this_trait.name)
+ correlation_results = compute_all_sample_correlation(
+ corr_method=method, this_trait=this_trait_data, target_dataset=target_dataset_data)
elif corr_type == "tissue":
trait_symbol_dict = this_dataset.retrieve_genes("Symbol")