Skip to content

Instantly share code, notes, and snippets.

View heimannch's full-sized avatar

Carolina Heimann heimannch

  • Institute for Systems Biology
  • Seattle, WA
View GitHub Profile
@heimannch
heimannch / igvShinyModule
Created December 11, 2020 00:16
igvShiny for modules
library(shiny)
library(igvShiny)
library(GenomicAlignments)
#----------------------------------------------------------------------------------------------------
# we need a local directory to write files - for instance, a vcf file representing a genomic
# region of interest. we then tell shiny about that directory, so that shiny's built-in http server
# can serve up files we write there, ultimately consumed by igv.js
if(!dir.exists("tracks"))
dir.create("tracks")
addResourcePath("tracks", "tracks")