aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance
diff options
context:
space:
mode:
authorzsloan2019-05-14 12:40:18 -0500
committerzsloan2019-05-14 12:40:18 -0500
commit15d64a94eacf6b883fcc1ef2a49aa6ca7934eb96 (patch)
tree0fa2a810908048ca6db861dcb83321d32195f9d3 /wqflask/maintenance
parentfa8efc4ead436c1776415f5fdc1c302d73d6bc89 (diff)
downloadgenenetwork2-15d64a94eacf6b883fcc1ef2a49aa6ca7934eb96.tar.gz
Added all of the third party links from GN1
Fixed issue with the script that generates the drop-down menus where phenotype/genotype datasets wouldn't show up for species without any mRNA assay datasets Added icon for smartphones/tablets Made error more informative for main search Added gene symbol column to collections (need to add something that removes the column if it's all empty)
Diffstat (limited to 'wqflask/maintenance')
-rw-r--r--wqflask/maintenance/gen_select_dataset.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/maintenance/gen_select_dataset.py b/wqflask/maintenance/gen_select_dataset.py
index c590a185..be028bdd 100644
--- a/wqflask/maintenance/gen_select_dataset.py
+++ b/wqflask/maintenance/gen_select_dataset.py
@@ -124,8 +124,9 @@ def get_types(groups):
if len(types_list) > 0:
types[species][group_name] += types_list
else:
- types[species].pop(group_name, None)
- groups[species] = tuple(group for group in groups[species] if group[0] != group_name)
+ if not phenotypes_exist(group_name) and not genotypes_exist(group_name):
+ types[species].pop(group_name, None)
+ groups[species] = tuple(group for group in groups[species] if group[0] != group_name)
else: #ZS: This whole else statement might be unnecessary, need to check
types_list = build_types(species, group_name)
if len(types_list) > 0: