AdrianBZG / InterMine-Data-Browser-Tool

InterMine Data Browser: a tool for exploring semi-homogeneous biological datasets
http://data-browser.apps.intermine.org/
Other
4 stars 38 forks source link

Show counts beside typeahead filters #39

Closed yochannah closed 6 years ago

yochannah commented 6 years ago

It would be nice to know how many of each result showing in my typeahead there are, similar to how organism works.

AdrianBZG commented 6 years ago

@yochannah Do you know how to query for {name, count} with the same query?

yochannah commented 6 years ago

I nearly came back to you and said I couldn't do it, but then I realised we just needed to do a summary query. Here's a demo: https://yochannah.github.io/im-tables-examples/nameandcount.html let me know if it doesn't make sense!

AdrianBZG commented 6 years ago

@yochannah Looks like I should be able to preprocess that summary response and associate the tuple {item,count} into a single string "item (count)" before feeding the typeahead, so it makes sense, thanks!