From 8c45fcf1e9228108034fab96bc7e7eaa7740f06c Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Fri, 18 Jul 2014 17:31:41 +0000 Subject: Added outlier highlighting Changed order of tabs in statistics panel on trait page Started working on heatmap --- wqflask/utility/helper_functions.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'wqflask/utility/helper_functions.py') 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 -- cgit v1.2.3