library(dallianceR)
This is a sketch for a htmlwidget wrapper for JavScript genome browser dalliance.
A dalliance function call generates a genome browser htmlwidget with a given reference genome (eg. GRCh38) and a given gene annotation (eg. GENCODEv21):
library(dallianceR) library(DT) library(dplyr)
dalliance(data = dummy)
datatable(data_frame(a = 1:10, b = runif(10)))
A common workflow loads...
.bigbed
, .bigwig
or indexed .bam.
.gff
and .vcf
(future) Where grouped tracks should be added in lists. In general, syntax to build a genome browser could resemble the leaflet syntax to build maps.
dalliance %>% addReference("GRCh38") %>% addAnnotation("GENCODEv21") %>% addTrack(list("my_track_A_rep1", "my_track_A_rep2"), list("my_track_B_rep1", "my_track_B_rep2")) %>%
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.