diff options
author | Zachary Sloan | 2013-08-02 17:55:39 -0500 |
---|---|---|
committer | Zachary Sloan | 2013-08-02 17:55:39 -0500 |
commit | cf42e71c07efc772c15956b75db374f0f2849cac (patch) | |
tree | 5cd314eabeb8acd60b0c02652896157f1e6037d6 | |
parent | 7eb7c55b3d0effdfcd359f12447f99568407f086 (diff) | |
download | genenetwork2-cf42e71c07efc772c15956b75db374f0f2849cac.tar.gz |
Fixed a bug related to groups with genofiles (not sure if it makes sense
for them not to have genofiles yet)
-rwxr-xr-x | wqflask/base/data_set.py | 6 | ||||
-rw-r--r-- | wqflask/maintenance/get_group_samplelists.py | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index ffc77299..58f08ae7 100755 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -260,7 +260,6 @@ class DatasetGroup(object): if maternal and paternal: self.parlist = [maternal, paternal] - def get_samplelist(self): key = "samplelist:v4:" + self.name print("key is:", key) @@ -275,7 +274,10 @@ class DatasetGroup(object): print(" self.samplelist: ", self.samplelist) else: print("Cache not hit") - self.samplelist = get_group_samplelists.get_samplelist(self.name + ".geno") + try: + self.samplelist = get_group_samplelists.get_samplelist(self.name + ".geno") + except IOError: + self.samplelist = None print("after get_samplelist") Redis.set(key, json.dumps(self.samplelist)) Redis.expire(key, 60*5) diff --git a/wqflask/maintenance/get_group_samplelists.py b/wqflask/maintenance/get_group_samplelists.py index 99e22904..c9ec3872 100644 --- a/wqflask/maintenance/get_group_samplelists.py +++ b/wqflask/maintenance/get_group_samplelists.py @@ -8,6 +8,8 @@ from base import webqtlConfig def process_genofiles(geno_dir=webqtlConfig.GENODIR): + print("Yabba") + #sys.exit("Dabba") os.chdir(geno_dir) for geno_file in glob.glob("*"): if geno_file.lower().endswith(('.geno', '.geno.gz')): |