aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/helper_functions.py
diff options
context:
space:
mode:
authorZachary Sloan2014-07-18 17:31:41 +0000
committerZachary Sloan2014-07-18 17:31:41 +0000
commit8c45fcf1e9228108034fab96bc7e7eaa7740f06c (patch)
tree679680c80d2b3d9f24f16741b17a09c8823d8af6 /wqflask/utility/helper_functions.py
parent8646d5fabd5e87f189f1429d71a872f8da80ba8c (diff)
downloadgenenetwork2-8c45fcf1e9228108034fab96bc7e7eaa7740f06c.tar.gz
Added outlier highlighting
Changed order of tabs in statistics panel on trait page Started working on heatmap
Diffstat (limited to 'wqflask/utility/helper_functions.py')
-rwxr-xr-xwqflask/utility/helper_functions.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/wqflask/utility/helper_functions.py b/wqflask/utility/helper_functions.py
index 44f5321e..ca3e2350 100755
--- a/wqflask/utility/helper_functions.py
+++ b/wqflask/utility/helper_functions.py
@@ -19,3 +19,18 @@ def get_species_dataset_trait(self, start_vars):
#if read_genotype:
#self.dataset.group.read_genotype_file()
#self.genotype = self.dataset.group.genotype
+
+
+def get_trait_db_obs(self, trait_db_list):
+
+ self.trait_list = []
+ for i, trait_db in enumerate(trait_db_list):
+ if i == (len(trait_db_list) - 1):
+ break
+ trait_name, dataset_name = trait_db.split(":")
+ #print("dataset_name:", dataset_name)
+ dataset_ob = data_set.create_dataset(dataset_name)
+ trait_ob = GeneralTrait(dataset=dataset_ob,
+ name=trait_name,
+ cellid=None)
+ self.trait_list.append((trait_ob, dataset_ob)) \ No newline at end of file