aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set.py
diff options
context:
space:
mode:
authorzsloan2020-02-07 12:44:15 -0600
committerzsloan2020-02-07 12:44:15 -0600
commit7d9ead16f45cc68d1543c673487891b03c990efe (patch)
treecbd7a7cef91e86085ac7fec4aab11b80b5be20b7 /wqflask/base/data_set.py
parent2668dabc88add8485e9b1b8216c82c2545c1d8e4 (diff)
downloadgenenetwork2-7d9ead16f45cc68d1543c673487891b03c990efe.tar.gz
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
Diffstat (limited to 'wqflask/base/data_set.py')
-rw-r--r--wqflask/base/data_set.py9
1 files changed, 9 insertions, 0 deletions
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