aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorzsloan2021-05-17 23:56:10 +0000
committerzsloan2021-05-18 00:00:36 +0000
commit0a8754a582f057bd335441eab15da3f629df9ad7 (patch)
treeea93887acbd3534793a90045dfce975765f992ab /gn3/api
parent624ece086d026da9150cd35b2404874ccf607b07 (diff)
downloadgenenetwork3-0a8754a582f057bd335441eab15da3f629df9ad7.tar.gz
Fixed variety of issues detected by pylint
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/rqtl.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/gn3/api/rqtl.py b/gn3/api/rqtl.py
index 82cf34f..7756310 100644
--- a/gn3/api/rqtl.py
+++ b/gn3/api/rqtl.py
@@ -1,5 +1,4 @@
-import os
-
+"""Endpoints for running the rqtl cmd"""
from flask import Blueprint
from flask import current_app
from flask import jsonify
@@ -12,8 +11,10 @@ rqtl = Blueprint("rqtl", __name__)
@rqtl.route("/compute", methods=["POST"])
def compute():
- working_dir = os.path.join(current_app.config.get("TMPDIR"))
+ """Given at least a geno_file and pheno_file, generate and
+run the rqtl_wrapper script and return the results as JSON
+ """
genofile = request.form['geno_file']
phenofile = request.form['pheno_file']
@@ -28,10 +29,8 @@ def compute():
rqtl_kwargs[kwarg] = request.form[kwarg]
results = generate_rqtl_cmd(
- rqtl_wrapper_cmd = current_app.config.get("RQTL_WRAPPER_CMD"),
- output_dir = current_app.config.get('TMPDIR'),
- rqtl_wrapper_kwargs = rqtl_kwargs
+ rqtl_wrapper_cmd=current_app.config.get("RQTL_WRAPPER_CMD"),
+ rqtl_wrapper_kwargs=rqtl_kwargs
)
return jsonify(results)
-