matthewhirschey / ddh.org

datadrivenhypothesis.org is a resource to query 100+ GB of raw biological science data to develop data-driven hypotheses
2 stars 7 forks source link

Add search page #70

Closed johnbradley closed 4 years ago

johnbradley commented 4 years ago

Includes initial work to support multiple pages so we can add a pathway page in the future. Separates app out into three pages:

All pages need to have unique names for the input/output elements to avoid collisions.

ui changes

Adds search box to all three pages that navigates to the search page.

Removes the text input used to enter a gene symbol and the go button from the gene page. Under the hood this removed input$gene_symbol and input$go since the search box handles this functionality now.

query parameter changes

Adds show query parameter that controls which page to show.

Added query query parameter for search page. Example datadrivenhypothesis.org/?show=search&query=BRA.

Added symbol query parameter for gene page. Example datadrivenhypothesis.org/?show=gene&symbol=BRCA1.

remaining work

shiny.router

I hit some issues trying to use shiny.router to separate out the pages. Details here. I think some of the unresponsiveness was due to un-intentional searching for empty gene names.

johnbradley commented 4 years ago

Example screenshots

home page

Screen Shot 2020-03-06 at 8 59 48 AM

search page

Screen Shot 2020-03-06 at 8 55 55 AM

gene page

Screen Shot 2020-03-06 at 8 56 15 AM