aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2021-08-17 13:06:50 -0500
committerGitHub2021-08-17 13:06:50 -0500
commit1dca61fd5e4a18fd6cbd4102acb7278fd3acfaf3 (patch)
treed5a06dd05a7fe27c4a94ddf8dff2cc151a6842b4 /wqflask/base
parentb70bf1250bc93a47c3e3e32d4d2f4a116121d11f (diff)
parent6acafff1b22089916b8323afb872e2ebed37943a (diff)
downloadgenenetwork2-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.py9
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: