aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set.py
diff options
context:
space:
mode:
authorzsloan2017-07-06 12:01:52 -0500
committerGitHub2017-07-06 12:01:52 -0500
commitd86f07f616d6892707dd26c87bf70db1a50f070a (patch)
tree2111574cac4f9408aa6223e10391d2a9a3f15244 /wqflask/base/data_set.py
parent5c7b50d579dcf08a16a45ccde4a299b6cce6aaab (diff)
parent0661ddd38fd53a2c3724c4144f3b4b4fd3e4f236 (diff)
downloadgenenetwork2-d86f07f616d6892707dd26c87bf70db1a50f070a.tar.gz
Merge pull request #256 from genenetwork/development
Variety of changes
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: