Skip to content

jjsayleraxio/AxioLocusZoom

Repository files navigation



AxioLocusZoom

R ShinyApp HTMLWidget using the locuszoom.js library

How To Use

  1. Install devtools
install.packages("devtools")
  1. Load the devtools package
library(devtools)
  1. Install using install_github() command
devtools::install_github("jjsayleraxio/AxioLocusZoom@v0.1.1-alpha")
  1. 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.


Source: The Center for Statistical Genetics at the University of Michigan School of Public Health, locuszoom