diff options
author | pjotrp | 2016-02-08 10:04:12 +0100 |
---|---|---|
committer | pjotrp | 2016-02-08 10:04:12 +0100 |
commit | 10ae56e0dcc7ac76c671789a67b754d0e1dd03ec (patch) | |
tree | af103b937f9003db84b1dd425554b1d20ae15abd /wqflask/base/data_set.py | |
parent | cb0f10fc4850b6b06f2237b532317a5c6668584a (diff) | |
parent | fdc0cdeda64213c82512da20b10264238bd210ea (diff) | |
download | genenetwork2-10ae56e0dcc7ac76c671789a67b754d0e1dd03ec.tar.gz |
Merge branch 'master' of github.com:genenetwork/genenetwork2 into gn-master
Diffstat (limited to 'wqflask/base/data_set.py')
-rwxr-xr-x | wqflask/base/data_set.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index d6a46c2e..5603fe2e 100755 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -158,7 +158,10 @@ 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(os.path.join(webqtlConfig.NEWGENODIR + name + '.json')) - markers = json.load(json_data_fh) + try: + markers = json.load(json_data_fh) + except: + markers = [] for marker in markers: if (marker['chr'] != "X") and (marker['chr'] != "Y"): |