aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorzsloan2021-06-18 21:13:03 +0000
committerzsloan2021-06-18 22:08:04 +0000
commitd42b85ae5fcea1b71a7165fd6e64745a228c48f9 (patch)
tree4249050b7e04559605b11fd1286417557d0c22b2 /gn3/api
parentf172f7cbe0e5fd44b452bf3f3be094ba8b6b2c0e (diff)
downloadgenenetwork3-d42b85ae5fcea1b71a7165fd6e64745a228c48f9.tar.gz
Fixed pylint issues
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/rqtl.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gn3/api/rqtl.py b/gn3/api/rqtl.py
index 38f4c1e..ebb746c 100644
--- a/gn3/api/rqtl.py
+++ b/gn3/api/rqtl.py
@@ -6,7 +6,6 @@ from flask import current_app
from flask import jsonify
from flask import request
-from gn3.commands import run_cmd
from gn3.computations.rqtl import generate_rqtl_cmd, process_rqtl_output, process_perm_output
from gn3.computations.gemma import do_paths_exist
@@ -45,13 +44,15 @@ run the rqtl_wrapper script and return the results as JSON
)
rqtl_output = {}
- if not os.path.isfile(os.path.join(current_app.config.get("TMPDIR"), "output", rqtl_cmd.get('output_file'))):
+ if not os.path.isfile(os.path.join(current_app.config.get("TMPDIR"),
+ "output", rqtl_cmd.get('output_file'))):
os.system(rqtl_cmd.get('rqtl_cmd'))
rqtl_output['results'] = process_rqtl_output(rqtl_cmd.get('output_file'))
rqtl_output['results'] = process_rqtl_output(rqtl_cmd.get('output_file'))
if int(rqtl_kwargs['nperm']) > 0:
- rqtl_output['perm_results'], rqtl_output['suggestive'], rqtl_output['significant'] = process_perm_output(rqtl_cmd.get('output_file'))
+ rqtl_output['perm_results'], rqtl_output['suggestive'], rqtl_output['significant'] = \
+ process_perm_output(rqtl_cmd.get('output_file'))
return jsonify(rqtl_output)