aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn2/wqflask/marker_regression/rqtl_mapping.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn2/wqflask/marker_regression/rqtl_mapping.py b/gn2/wqflask/marker_regression/rqtl_mapping.py
index b7739228..571935cb 100644
--- a/gn2/wqflask/marker_regression/rqtl_mapping.py
+++ b/gn2/wqflask/marker_regression/rqtl_mapping.py
@@ -8,6 +8,7 @@ from typing import Dict
from typing import List
from typing import Optional
from typing import TextIO
+from urllib.parse import urljoin
import numpy as np
@@ -54,7 +55,8 @@ 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(GN3_LOCAL_URL + "api/rqtl/compute", data=post_data).json()
+ rqtl_output = 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: