aboutsummaryrefslogtreecommitdiff
path: root/gn3/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/settings.py')
-rw-r--r--gn3/settings.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/gn3/settings.py b/gn3/settings.py
index 57c63df..6eec2a1 100644
--- a/gn3/settings.py
+++ b/gn3/settings.py
@@ -13,11 +13,13 @@ REDIS_JOB_QUEUE = "GN3::job-queue"
TMPDIR = os.environ.get("TMPDIR", tempfile.gettempdir())
RQTL_WRAPPER = "rqtl_wrapper.R"
+# SPARQL endpoint
+SPARQL_ENDPOINT = "http://localhost:8891/sparql"
+
# SQL confs
SQL_URI = os.environ.get(
"SQL_URI", "mysql://webqtlout:webqtlout@localhost/db_webqtl")
SECRET_KEY = "password"
-SQLALCHEMY_TRACK_MODIFICATIONS = False
# gn2 results only used in fetching dataset info
GN2_BASE_URL = "http://www.genenetwork.org/"
@@ -25,11 +27,11 @@ GN2_BASE_URL = "http://www.genenetwork.org/"
# wgcna script
WGCNA_RSCRIPT = "wgcna_analysis.R"
# qtlreaper command
-REAPER_COMMAND = "{}/bin/qtlreaper".format(os.environ.get("GUIX_ENVIRONMENT"))
+REAPER_COMMAND = f"{os.environ.get('GUIX_ENVIRONMENT')}/bin/qtlreaper"
# genotype files
GENOTYPE_FILES = os.environ.get(
- "GENOTYPE_FILES", "{}/genotype_files/genotype".format(os.environ.get("HOME")))
+ "GENOTYPE_FILES", f"{os.environ.get('HOME')}/genotype_files/genotype")
# CROSS-ORIGIN SETUP
def parse_env_cors(default):
@@ -53,3 +55,7 @@ CORS_HEADERS = [
GNSHARE = os.environ.get("GNSHARE", "/gnshare/gn/")
TEXTDIR = f"{GNSHARE}/web/ProbeSetFreeze_DataMatrix"
+
+ROUND_TO = 10
+
+MULTIPROCESSOR_PROCS = 6 # Number of processes to spawn