aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL.md4
-rw-r--r--wqflask/wqflask/my_pylmm/pyLMM/lmm.py6
-rw-r--r--wqflask/wqflask/my_pylmm/pyLMM/runlmm.py8
3 files changed, 16 insertions, 2 deletions
diff --git a/INSTALL.md b/INSTALL.md
index a971ff78..9f28ac28 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -16,8 +16,8 @@ Clone the repository (currently ~800Mb) to local
GN2 requires
* python
-* redis
-* mysql
+* redis-server
+* mysql-server
## Required python modules
diff --git a/wqflask/wqflask/my_pylmm/pyLMM/lmm.py b/wqflask/wqflask/my_pylmm/pyLMM/lmm.py
index 2d9ca812..4e35a4ac 100644
--- a/wqflask/wqflask/my_pylmm/pyLMM/lmm.py
+++ b/wqflask/wqflask/my_pylmm/pyLMM/lmm.py
@@ -34,6 +34,12 @@ import datetime
# import cPickle as pickle
from pprint import pformat as pf
+# Add local dir to PYTHONPATH
+import os
+cwd = os.path.dirname(__file__)
+if sys.path[0] != cwd:
+ sys.path.insert(1,cwd)
+
# pylmm imports
from kinship import kinship, kinship_full, kvakve
import genotype
diff --git a/wqflask/wqflask/my_pylmm/pyLMM/runlmm.py b/wqflask/wqflask/my_pylmm/pyLMM/runlmm.py
index 52c3c80a..6b241cd6 100644
--- a/wqflask/wqflask/my_pylmm/pyLMM/runlmm.py
+++ b/wqflask/wqflask/my_pylmm/pyLMM/runlmm.py
@@ -21,6 +21,14 @@ from optparse import OptionParser
import sys
import tsvreader
import numpy as np
+
+# Add local dir to PYTHONPATH
+import os
+cwd = os.path.dirname(__file__)
+if sys.path[0] != cwd:
+ sys.path.insert(1,cwd)
+
+# pylmm modules
from lmm import gn2_load_redis, gn2_load_redis_iter, calculate_kinship_new, run_gwas
from kinship import kinship, kinship_full
import genotype