A simple wrapper of saveWidget, which saves a TnTBoard/TnTGenome object to an HTML file (e.g. for sharing with others).

saveTnT(tntdef, file, selfcontained = TRUE, libdir = NULL,
  background = "white", knitrOptions = list())

Arguments

tntdef

A TnTBoard/TnTGenome object to save.

file, selfcontained, libdir, background, knitrOptions

Passed to saveWidget.

Value

Return NULL.

Examples

data <- GRanges("chr2", IRanges(c(6,9,42), width = 1), value = c(0.3, 0.5, 0.9)) track <- PinTrack(data, label = NULL, background = "green") genome <- TnTGenome(list(track)) destfile <- tempfile(fileext = ".html") destfile
#> [1] "/tmp/Rtmp9792Ks/file64712490033e.html"
saveTnT(genome, destfile)
#> - Missing argument `view.range`: #> automatically select 1..46 on seqlevel chr2...
#> - Missing argument `coord.range` and seqlength is unknown: #> automatically set coordinate limit to -2..49 ...
# NOT RUN { utils::browseURL(destfile) # }