From 7d9ead16f45cc68d1543c673487891b03c990efe Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 7 Feb 2020 12:44:15 -0600 Subject: Users can now add and do mapping on genotype files that only include a subset of samples/strains Also filtered the results used by Christian's genome browser, so now it should have an easier time loading when dealing with larger numbers of markers --- wqflask/base/data_set.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'wqflask/base/data_set.py') diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index 49600c64..7fe9a8ac 100644 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -347,6 +347,15 @@ class DatasetGroup(object): if maternal and paternal: self.parlist = [maternal, paternal] + def get_genofiles(self): + jsonfile = "%s/%s.json" % (webqtlConfig.GENODIR, self.name) + try: + f = open(jsonfile) + except: + return None + jsondata = json.load(f) + return jsondata['genofile'] + def get_samplelist(self): result = None key = "samplelist:v3:" + self.name -- cgit v1.2.3