diff options
author | zsloan | 2021-08-17 13:06:50 -0500 |
---|---|---|
committer | GitHub | 2021-08-17 13:06:50 -0500 |
commit | 1dca61fd5e4a18fd6cbd4102acb7278fd3acfaf3 (patch) | |
tree | d5a06dd05a7fe27c4a94ddf8dff2cc151a6842b4 /wqflask/base | |
parent | b70bf1250bc93a47c3e3e32d4d2f4a116121d11f (diff) | |
parent | 6acafff1b22089916b8323afb872e2ebed37943a (diff) | |
download | genenetwork2-1dca61fd5e4a18fd6cbd4102acb7278fd3acfaf3.tar.gz |
Merge pull request #598 from zsloan/feature/add_filter_by_study_samples
Feature/add filter by study samples
Diffstat (limited to 'wqflask/base')
-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 edc22540..8906ab69 100644 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -396,6 +396,15 @@ class DatasetGroup: if maternal and paternal: self.parlist = [maternal, paternal] + def get_study_samplelists(self): + study_sample_file = locate_ignore_error(self.name + ".json", 'study_sample_lists') + try: + f = open(study_sample_file) + except: + return [] + study_samples = json.load(f) + return study_samples + def get_genofiles(self): jsonfile = "%s/%s.json" % (webqtlConfig.GENODIR, self.name) try: |