Includes initial work to support multiple pages so we can add a pathway page in the future.
Separates app out into three pages:
home- landing page where user can enter a search string
search - results from the search where user can pick a gene to view (results limited to 10 genes)
gene - view data for a specific gene (the pre-existing screen)
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
Navigation is incomplete - a user cannot get back to the home page without using the browser back button or by changing the URL.
On the gene page the search box is not in a good permanent location - It is just tacked on to the bottom of the first tab. It is not visible when the user is on the other tabs.
Making the pages fit together better. The home page should have more explanatory text. The gene page seems really full in comparision to the other two pages. Might also be nice to let a user know from search page if we have no data for a gene.
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.
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
andinput$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 forsearch
page. Exampledatadrivenhypothesis.org/?show=search&query=BRA
.Added
symbol
query parameter forgene
page. Exampledatadrivenhypothesis.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.