aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set.py
diff options
context:
space:
mode:
authorLei Yan2017-08-02 22:47:35 +0000
committerLei Yan2017-08-02 22:47:35 +0000
commitb1dd8959f451f9aabf9a46a98071888053e6266e (patch)
tree19762ae3af9630c8f280634e6af4e6ad59cb4f34 /wqflask/base/data_set.py
parent255aace685b7919808e93ad3c8c47334b0496eb9 (diff)
parentd86f07f616d6892707dd26c87bf70db1a50f070a (diff)
downloadgenenetwork2-b1dd8959f451f9aabf9a46a98071888053e6266e.tar.gz
Merge branch 'testing' of github.com:genenetwork/genenetwork2
Diffstat (limited to 'wqflask/base/data_set.py')
-rw-r--r--wqflask/base/data_set.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 4959457a..dbdbb51c 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -169,7 +169,7 @@ def mescape(*items):
class Markers(object):
"""Todo: Build in cacheing so it saves us reading the same file more than once"""
def __init__(self, name):
- json_data_fh = open(locate(name + '.json','genotype/json'))
+ json_data_fh = open(locate(name + ".json",'genotype/json'))
try:
markers = json.load(json_data_fh)
except:
@@ -334,7 +334,10 @@ class DatasetGroup(object):
else:
marker_class = Markers
- self.markers = marker_class(self.name)
+ if self.genofile:
+ self.markers = marker_class(self.genofile[:-5])
+ else:
+ self.markers = marker_class(self.name)
def get_f1_parent_strains(self):
try: