diff options
author | Frederick Muriuki Muriithi | 2024-09-25 07:27:17 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-25 07:38:19 -0500 |
commit | ae572dfe805defc4d40d173325178f5b08c080bf (patch) | |
tree | 7de6cd06f7a5e0d61a377f266a760295d7c0ae51 /gn2/wqflask/marker_regression | |
parent | 5cda26165b469d133bbf49ec6b15433a1d764b36 (diff) | |
download | genenetwork2-ae572dfe805defc4d40d173325178f5b08c080bf.tar.gz |
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.
Diffstat (limited to 'gn2/wqflask/marker_regression')
-rw-r--r-- | gn2/wqflask/marker_regression/rqtl_mapping.py | 8 |
1 files changed, 6 insertions, 2 deletions
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: |