aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorzsloan2019-03-18 17:03:30 -0500
committerzsloan2019-03-18 17:03:30 -0500
commitd515061c4878b448f5b866e32eee7e37301ecdb7 (patch)
treef88efd6fb87044065d68ff1602a8d57692de5f1f /wqflask/utility
parentf8f0a2aecd14b7a45172d67d7eac3c9c2ac3618f (diff)
downloadgenenetwork2-d515061c4878b448f5b866e32eee7e37301ecdb7.tar.gz
- Added PCA traits to correlation matrix. You can't change their names yet or add them to a collection from the corr matrix page,
but you can click them and access them from the trait page. I'll add the option to access them from the corr matrix page as well, but adding the option to change their names might be trickier since they're currently used as their Redis keys. I need some better way of passing the Redis key around so it can be stored in collections, but this is tricky without changing the structure in ElasticSearch - Fixed the way temp traits work so you can use them with various functions, like mapping, correlations, network graph, etc - Fixed some appearance issue where the network graph options were too wide if a trait name was too long
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/helper_functions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/utility/helper_functions.py b/wqflask/utility/helper_functions.py
index 1c8dad10..6980af4e 100644
--- a/wqflask/utility/helper_functions.py
+++ b/wqflask/utility/helper_functions.py
@@ -45,7 +45,10 @@ def get_trait_db_obs(self, trait_db_list):
data = data.strip()
assert hmac==user_manager.actual_hmac_creation(data), "Data tampering?"
trait_name, dataset_name = data.split(":")
- dataset_ob = data_set.create_dataset(dataset_name)
+ if dataset_name == "Temp":
+ dataset_ob = data_set.create_dataset(dataset_name=dataset_name, dataset_type="Temp", group_name=trait_name.split("_")[2])
+ else:
+ dataset_ob = data_set.create_dataset(dataset_name)
trait_ob = GeneralTrait(dataset=dataset_ob,
name=trait_name,
cellid=None)