diff options
author | zsloan | 2021-05-12 18:15:49 +0000 |
---|---|---|
committer | zsloan | 2021-05-12 18:15:49 +0000 |
commit | 82c139048e1f7f34b29d2c040866e1bc5ea02134 (patch) | |
tree | b0b61fe2503d737c3e611fef93659b9194297f42 /wqflask/base/data_set.py | |
parent | 1efc014dd5efc34d95b536f51f8a1de914069e20 (diff) | |
parent | c4ec08c1b544c05cce1c1247b8bc1afb741643e4 (diff) | |
download | genenetwork2-82c139048e1f7f34b29d2c040866e1bc5ea02134.tar.gz |
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into testing
Diffstat (limited to 'wqflask/base/data_set.py')
-rw-r--r-- | wqflask/base/data_set.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index e20f2f98..75ddf278 100644 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -124,6 +124,7 @@ class DatasetType: self.datasets[short_dataset_name] = new_type except Exception: # Do nothing pass + self.redis_instance.set("dataset_structure", json.dumps(self.datasets)) self.data = data @@ -165,6 +166,7 @@ class DatasetType: if t in ['pheno', 'other_pheno']: group_name = name.replace("Publish", "") + results = g.db.execute(sql_query_mapping[t] % group_name).fetchone() if results: self.datasets[name] = dataset_name_mapping[t] @@ -646,6 +648,8 @@ class DataSet: "Dataset {} is not yet available in GeneNetwork.".format(self.name)) pass + + def get_trait_data(self, sample_list=None): if sample_list: self.samplelist = sample_list |