From ae572dfe805defc4d40d173325178f5b08c080bf Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 25 Sep 2024 07:27:17 -0500 Subject: DEBUG: Log out R/qtl2 or Pair-Scan results Running R/qtl2 and Pair-Scan results in the production container fails, but somehow runs on production. This implies a possible configuration thing that is not explicit. Hopefully this debug helps surface the cause to enable fixing. --- gn2/wqflask/marker_regression/rqtl_mapping.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gn2/wqflask') diff --git a/gn2/wqflask/marker_regression/rqtl_mapping.py b/gn2/wqflask/marker_regression/rqtl_mapping.py index 571935cb..c52add46 100644 --- a/gn2/wqflask/marker_regression/rqtl_mapping.py +++ b/gn2/wqflask/marker_regression/rqtl_mapping.py @@ -12,6 +12,8 @@ from urllib.parse import urljoin import numpy as np +from gn3.debug import __pk__ + from gn2.base.webqtlConfig import TMPDIR from gn2.base.trait import create_trait from gn2.utility.redis_tools import get_redis_conn @@ -55,8 +57,10 @@ def run_rqtl(trait_name, vals, samples, dataset, pair_scan, mapping_scale, model if perm_strata_list: post_data["pstrata"] = True - rqtl_output = requests.post(urljoin(GN3_LOCAL_URL, "api/rqtl/compute"), - data=post_data).json() + rqtl_output = __pk__( + "R/qtl or Pair-Scan results", + requests.post(urljoin(GN3_LOCAL_URL, "api/rqtl/compute"), + data=post_data).json()) if num_perm > 0: return rqtl_output['perm_results'], rqtl_output['suggestive'], rqtl_output['significant'], rqtl_output['results'] else: -- cgit v1.2.3