A TnTBoard or TnTGenome object stores a list of tracks and can be automatically shown in an interactive R session or in rmarkdown output.
TnTBoard(tracklist, view.range = GRanges(), coord.range = IRanges(), zoom.allow = IRanges(), allow.drag = TRUE, use.tnt.genome = FALSE) TnTGenome(tracklist, view.range = GRanges(), coord.range = IRanges(), zoom.allow = IRanges(), allow.drag = TRUE)
tracklist | One track or a list of tracks to view. |
---|---|
view.range | Length-one GRanges object, sets the initial view range. |
coord.range | Length-one IRanges object or length-two numeric vector, sets the coordinate limit of the board (i.e. minimum/maximum possible coordinate). |
zoom.allow | Length-one IRanges object or length-two numeric vector, sets the minimum and maximum extent of the board (i.e. the limit when zooming in and zooming out). |
allow.drag | Logical, whether drag should be allowed? Default TRUE. |
use.tnt.genome | Logical, whether to add axis and location. `TnTGenome(...)` is essentially a wrapper to `TnTBoard(..., use.tnt.genome = TRUE)`. |
Returns a TnTBoard or TnTGenome object which has printing method to be rendered as a htmlwidget.
# NOT RUN { TnTGenome(track) # }