R ShinyApp HTMLWidget using the locuszoom.js library
- Install devtools
install.packages("devtools")
- Load the devtools package
library(devtools)
- Install using
install_github()
command
devtools::install_github("jjsayleraxio/[email protected]")
- Example of how to run code:
- in ui:
...
mainPanel(
LocusZoomPlotOutput("locuszoom")
)
- in server:
output$locuszoom<-renderLocusZoomPlot({
LocusZoomPlot(list(assoc_url = [data source URL],
assoc_analysis = [name of a database file],
assoc_id_field = [name of id_field],
gene_url = [data source URL],
gene_source = [value of gene_source],
chr = [chromosome number],
start = [start position],
end = [end position]))
})
Change version tag to whatever tagged release you want to use, or leave it off to pull the most current version. Check out the releases for more info.