aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander Kabui2021-04-15 02:17:30 +0300
committerAlexander Kabui2021-04-15 02:17:30 +0300
commitf3f68f8eb92c7ec9c42bc20bc8e94c435cc745e2 (patch)
treeb9c8cef828e7dc1f19a85da3807ea0ad77bd690a /gn3/api
parentff80b5228e741c24d66d1d1c13702a34aac77a78 (diff)
downloadgenenetwork3-f3f68f8eb92c7ec9c42bc20bc8e94c435cc745e2.tar.gz
optimization for sample correlation
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/correlation.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gn3/api/correlation.py b/gn3/api/correlation.py
index f28e1f5..7be8e30 100644
--- a/gn3/api/correlation.py
+++ b/gn3/api/correlation.py
@@ -16,6 +16,8 @@ correlation = Blueprint("correlation", __name__)
def compute_sample_integration(corr_method="pearson"):
"""temporary api to help integrate genenetwork2 to genenetwork3 """
+ # for debug
+ print("Calling this endpoint")
correlation_input = request.get_json()
target_samplelist = correlation_input.get("target_samplelist")
@@ -23,7 +25,6 @@ def compute_sample_integration(corr_method="pearson"):
this_trait_data = correlation_input.get("trait_data")
results = map_shared_keys_to_values(target_samplelist, target_data_values)
-
correlation_results = compute_all_sample_correlation(corr_method=corr_method,
this_trait=this_trait_data,
target_dataset=results)
@@ -75,6 +76,8 @@ def compute_lit_corr(species=None, gene_id=None):
@correlation.route("/tissue_corr/<string:corr_method>", methods=["POST"])
def compute_tissue_corr(corr_method="pearson"):
"""Api endpoint fr doing tissue correlation"""
+ # for debug
+ print("The request has been received")
tissue_input_data = request.get_json()
primary_tissue_dict = tissue_input_data["primary_tissue"]
target_tissues_dict = tissue_input_data["target_tissues_dict"]