aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2021-08-17 11:42:20 +0300
committerMuriithi Frederick Muriuki2021-08-17 11:42:20 +0300
commitd491be2057843921cc67bd1c4b1ae612d9f15d34 (patch)
treed4fc8c4ed37985172dcc5e5faba35d4ef42ad046
parent99bfda81abe76b3bb3f7034cf6cdac21c8d50726 (diff)
downloadgenenetwork3-d491be2057843921cc67bd1c4b1ae612d9f15d34.tar.gz
Fix obvious linting errors
* Fix linting errors that do not change the function of the code.
-rw-r--r--gn3/api/correlation.py4
-rw-r--r--gn3/api/general.py3
-rw-r--r--gn3/computations/correlations.py4
-rw-r--r--wsgi.py6
4 files changed, 10 insertions, 7 deletions
diff --git a/gn3/api/correlation.py b/gn3/api/correlation.py
index a3e366e..46121f8 100644
--- a/gn3/api/correlation.py
+++ b/gn3/api/correlation.py
@@ -79,7 +79,7 @@ def compute_tissue_corr(corr_method="pearson"):
target_tissues_dict = tissue_input_data["target_tissues_dict"]
results = compute_tissue_correlation(primary_tissue_dict=primary_tissue_dict,
- target_tissues_data=target_tissues_dict,
- corr_method=corr_method)
+ target_tissues_data=target_tissues_dict,
+ corr_method=corr_method)
return jsonify(results)
diff --git a/gn3/api/general.py b/gn3/api/general.py
index 86fb7b7..69ec343 100644
--- a/gn3/api/general.py
+++ b/gn3/api/general.py
@@ -13,7 +13,8 @@ general = Blueprint("general", __name__)
@general.route("/version")
def version():
- return jsonify("1.0")
+ """Get API version."""
+ return jsonify("1.0")
@general.route("/metadata/upload/", methods=["POST"],
strict_slashes=False)
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py
index 1fd3213..8d76c09 100644
--- a/gn3/computations/correlations.py
+++ b/gn3/computations/correlations.py
@@ -341,8 +341,8 @@ def compute_all_lit_correlation(conn, trait_lists: List,
def compute_tissue_correlation(primary_tissue_dict: dict,
- target_tissues_data: dict,
- corr_method: str):
+ target_tissues_data: dict,
+ corr_method: str):
"""Function acts as an abstraction for tissue_correlation_for_trait\
required input are target tissue object and primary tissue trait\
target tissues data contains the trait_symbol_dict and symbol_tissue_vals
diff --git a/wsgi.py b/wsgi.py
index d30bc49..0fcb573 100644
--- a/wsgi.py
+++ b/wsgi.py
@@ -1,9 +1,11 @@
+"""
+WSGI application entry-point.
+"""
# import main
+from gn3.app import create_app
print("STARTING WSGI APP")
-from gn3.app import create_app
-
app = create_app()
if __name__ == "__main__":