aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2021-08-12 22:35:53 +0000
committerzsloan2021-08-12 22:35:53 +0000
commitf4fbb6d53419a19c6ee67977d18605cdcbb09c0e (patch)
tree0411423e1171c12face0060142d725a61fce415d /wqflask/base
parenteecaad2dac6efa885540287a7ef5a273c6d18be2 (diff)
downloadgenenetwork2-f4fbb6d53419a19c6ee67977d18605cdcbb09c0e.tar.gz
add function for reading in JSON file that lists sample lists unique to each study within a group (in this case only BXD Longevity for now)
Diffstat (limited to 'wqflask/base')
-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 4cb82665..b8f2f9fb 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -398,6 +398,15 @@ class DatasetGroup:
if maternal and paternal:
self.parlist = [maternal, paternal]
+ def get_study_samplelists(self):
+ study_sample_file = "%s/study_sample_lists/%s.json" % (webqtlConfig.GENODIR, self.name)
+ try:
+ f = open(study_sample_file)
+ except:
+ return None
+ study_samples = json.load(f)
+ return study_samples
+
def get_genofiles(self):
jsonfile = "%s/%s.json" % (webqtlConfig.GENODIR, self.name)
try: