aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorZachary Sloan2013-05-17 23:05:36 +0000
committerZachary Sloan2013-05-17 23:05:36 +0000
commit668d6be6286c646cb1ce8cc4d415aa65640bc84c (patch)
tree58ecd3e3477927c1bb0734bb6d807d6910a0cd7e /wqflask
parent04b61737236b837e91355b66cbaab3549bc39140 (diff)
downloadgenenetwork2-668d6be6286c646cb1ce8cc4d415aa65640bc84c.tar.gz
Did a little work with quick search page
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/search_results.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index 9b2751e0..ad74f6cc 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -42,7 +42,7 @@ from utility import formatting
#def __init__(self, key, result_fields):
# self.key = key
# self.result_fields = result_fields
-
+
class SearchResultPage(object):
#maxReturn = 3000
@@ -91,7 +91,7 @@ class SearchResultPage(object):
"""
self.trait_list = []
-
+
species = webqtlDatabaseFunction.retrieve_species(self.dataset.group.name)
# result_set represents the results for each search term; a search of
@@ -100,7 +100,7 @@ class SearchResultPage(object):
for result in self.results:
if not result:
continue
-
+
#### Excel file needs to be generated ####
print("foo locals are:", locals())
@@ -128,13 +128,13 @@ class SearchResultPage(object):
with Bench("Doing QuickSearch Query: "):
dbresults = g.db.execute(query, no_parameters=True).fetchall()
#print("results: ", pf(results))
-
+
self.results = collections.defaultdict(list)
-
+
type_dict = {'PublishXRef': 'phenotype',
'ProbeSetXRef': 'mrna_assay',
'GenoXRef': 'genotype'}
-
+
self.species_groups = {}
for dbresult in dbresults:
this_result = {}
@@ -156,9 +156,9 @@ class SearchResultPage(object):
#if this_group not in self.species_groups[type_dict[dbresult.table_name]][this_species]:
# self.species_groups[type_dict[dbresult.table_name]][this_species].append(this_group)
self.results[type_dict[dbresult.table_name]].append(this_result)
-
+
#print("results: ", pf(self.results['phenotype']))
-
+
#def get_group_species_tree(self):
# self.species_groups = collections.default_dict(list)
# for key in self.results: