The BiocHubsShiny
package allows users to visually explore the AnnotationHub
and ExperimentHub
resources via shiny
. It provides a tabular display of the
available resources with the ability to filter and search through the column
fields.
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("BiocHubsShiny")
library(BiocHubsShiny)
Resources are displayed interactively using the eponymous function:
BiocHubsShiny()
knitr::include_graphics("figures/BiocHubsShiny.png")
You can filter by any of the columns in the table. For example, you can search for 'Mus musculus' to get resources only for that species:
knitr::include_graphics("figures/MusMusculus.png")
Click on the rows to select the resources. They will show up as highlighted rows.
knitr::include_graphics("figures/MusMusculusSelection.png")
Once the selection is highlighted, the code at the bottom of the app will be updated to show the commands for entering (reproducibly) into the R session.
knitr::include_graphics("figures/MusMusculusCode.png")
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.