aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/mrna_assay_tissue_data.py1
-rw-r--r--wqflask/base/species.py5
-rw-r--r--wqflask/runserver.py9
-rw-r--r--wqflask/wqflask/correlation_matrix/show_corr_matrix.py4
-rw-r--r--wqflask/wqflask/do_search.py2
-rw-r--r--wqflask/wqflask/network_graph/network_graph.py5
6 files changed, 1 insertions, 25 deletions
diff --git a/wqflask/base/mrna_assay_tissue_data.py b/wqflask/base/mrna_assay_tissue_data.py
index 33ce12bd..12f18f71 100644
--- a/wqflask/base/mrna_assay_tissue_data.py
+++ b/wqflask/base/mrna_assay_tissue_data.py
@@ -7,7 +7,6 @@ from utility import Bunch
from MySQLdb import escape_string as escape
-from pprint import pformat as pf
from utility.logger import getLogger
logger = getLogger(__name__ )
diff --git a/wqflask/base/species.py b/wqflask/base/species.py
index e3f1bc4a..2771d116 100644
--- a/wqflask/base/species.py
+++ b/wqflask/base/species.py
@@ -2,11 +2,6 @@ import collections
from flask import Flask, g
-#from MySQLdb import escape_string as escape
-
-from utility import Bunch
-
-from pprint import pformat as pf
from utility.logger import getLogger
logger = getLogger(__name__ )
diff --git a/wqflask/runserver.py b/wqflask/runserver.py
index 15572d97..58d79589 100644
--- a/wqflask/runserver.py
+++ b/wqflask/runserver.py
@@ -11,25 +11,16 @@ from wqflask import app
import logging
-import utility.logger
-logger = utility.logger.getLogger(__name__ )
-
-import signal
-signal.signal(signal.SIGPIPE, signal.SIG_DFL)
BLUE = '\033[94m'
GREEN = '\033[92m'
BOLD = '\033[1m'
ENDC = '\033[0m'
-from utility.startup_config import app_config
-
app_config()
werkzeug_logger = logging.getLogger('werkzeug')
-from utility.tools import WEBSERVER_MODE, SERVER_PORT
-
if WEBSERVER_MODE == 'DEBUG':
app.run(host='0.0.0.0',
port=SERVER_PORT,
diff --git a/wqflask/wqflask/correlation_matrix/show_corr_matrix.py b/wqflask/wqflask/correlation_matrix/show_corr_matrix.py
index 7b4bda31..dac4037e 100644
--- a/wqflask/wqflask/correlation_matrix/show_corr_matrix.py
+++ b/wqflask/wqflask/correlation_matrix/show_corr_matrix.py
@@ -47,10 +47,6 @@ import utility.webqtlUtil #this is for parallel computing only.
from wqflask.correlation import correlation_functions
from utility.benchmark import Bench
-from MySQLdb import escape_string as escape
-
-from pprint import pformat as pf
-
from flask import Flask, g, url_for
import utility.logger
diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py
index de8e1e78..7e71f7d7 100644
--- a/wqflask/wqflask/do_search.py
+++ b/wqflask/wqflask/do_search.py
@@ -8,7 +8,6 @@ from MySQLdb import escape_string as escape
from pprint import pformat as pf
import sys
-# sys.path.append("..") Never in a running webserver
from db import webqtlDatabaseFunction
from utility.tools import GN2_BASE_URL
@@ -17,6 +16,7 @@ import logging
from utility.logger import getLogger
logger = getLogger(__name__)
+
class DoSearch(object):
"""Parent class containing parameters/functions used for all searches"""
diff --git a/wqflask/wqflask/network_graph/network_graph.py b/wqflask/wqflask/network_graph/network_graph.py
index 70e5dd58..cfefe4ec 100644
--- a/wqflask/wqflask/network_graph/network_graph.py
+++ b/wqflask/wqflask/network_graph/network_graph.py
@@ -31,11 +31,6 @@ from utility.tools import GN2_BRANCH_URL
from db import webqtlDatabaseFunction
import utility.webqtlUtil #this is for parallel computing only.
from wqflask.correlation import correlation_functions
-from utility.benchmark import Bench
-
-from MySQLdb import escape_string as escape
-
-from pprint import pformat as pf
from flask import Flask, g