diff options
author | Lei Yan | 2014-07-18 17:47:36 +0000 |
---|---|---|
committer | Lei Yan | 2014-07-18 17:47:36 +0000 |
commit | c424db452c243c6f0f64ee58d2d7baeb147dd3c8 (patch) | |
tree | 5c65cdafd8315e7cedb45c8002a1112d8cc1c477 /wqflask/utility/helper_functions.py | |
parent | ee0769c22472ea9dc1addd3886afd62d54ff2c00 (diff) | |
parent | 8c45fcf1e9228108034fab96bc7e7eaa7740f06c (diff) | |
download | genenetwork2-c424db452c243c6f0f64ee58d2d7baeb147dd3c8.tar.gz |
Merge /home/zas1024/gene
Conflicts:
wqflask/base/data_set.py
Diffstat (limited to 'wqflask/utility/helper_functions.py')
-rwxr-xr-x | wqflask/utility/helper_functions.py | 15 |
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 |