diff options
author | zsloan | 2021-08-12 22:35:53 +0000 |
---|---|---|
committer | zsloan | 2021-08-12 22:35:53 +0000 |
commit | f4fbb6d53419a19c6ee67977d18605cdcbb09c0e (patch) | |
tree | 0411423e1171c12face0060142d725a61fce415d /wqflask/base/data_set.py | |
parent | eecaad2dac6efa885540287a7ef5a273c6d18be2 (diff) | |
download | genenetwork2-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/data_set.py')
-rw-r--r-- | wqflask/base/data_set.py | 9 |
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: |