tntboard: TnTBoard

Description Usage Arguments Value Examples

Description

A TnTBoard or TnTGenome object stores a list of tracks and can be automatically shown in an interactive R session or in rmarkdown output.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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
)

Arguments

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)'.

Value

Returns a TnTBoard or TnTGenome object which has printing method to be rendered as a htmlwidget.

Examples

1
2
3
4
5
track <- BlockTrack(GRanges("chr1", IRanges(start = c(100, 300, 500), width = c(10, 100, 200))))
## Not run: 
TnTGenome(track)

## End(Not run)

TnT documentation built on Nov. 8, 2020, 8:11 p.m.