diff options
author | Pjotr Prins | 2018-10-12 08:24:16 +0000 |
---|---|---|
committer | Pjotr Prins | 2018-10-12 08:24:16 +0000 |
commit | 5162d1484f01a51d65e7e70143146f018d96edb4 (patch) | |
tree | 0ebcdab6a10a1d112dd5a36512352314219fcc56 /wqflask/utility | |
parent | dd743c8311b26f6a786c346cf4deed144c6a9b61 (diff) | |
parent | 261ba5e41408d212cc3c33df658b6be2431f68ad (diff) | |
download | genenetwork2-5162d1484f01a51d65e7e70143146f018d96edb4.tar.gz |
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into gn-testing
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/helper_functions.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/wqflask/utility/helper_functions.py b/wqflask/utility/helper_functions.py index cf16879f..1c8dad10 100644 --- a/wqflask/utility/helper_functions.py +++ b/wqflask/utility/helper_functions.py @@ -14,7 +14,13 @@ logger = logging.getLogger(__name__ ) def get_species_dataset_trait(self, start_vars): #assert type(read_genotype) == type(bool()), "Expecting boolean value for read_genotype" - self.dataset = data_set.create_dataset(start_vars['dataset']) + if "temp_trait" in start_vars.keys(): + if start_vars['temp_trait'] == "True": + self.dataset = data_set.create_dataset(dataset_name = "Temp", dataset_type = "Temp", group_name = start_vars['group']) + else: + self.dataset = data_set.create_dataset(start_vars['dataset']) + else: + self.dataset = data_set.create_dataset(start_vars['dataset']) logger.debug("After creating dataset") self.species = TheSpecies(dataset=self.dataset) logger.debug("After creating species") |