ucscTrackModes-methods {rtracklayer} | R Documentation |
Generics for getting and setting UCSC track visibility modes ("hide", "dense", "full", "pack", "squish").
ucscTrackModes(object, ...)
.
function(object, hide = character(),
dense = character(), pack = character(),
squish = character(), full = character())
Creates an instance of ucscTrackModes
from
object
, a character vector of mode names, with the
corresponding track names given in the names
attribute. Note
that object
can be a ucscTrackModes
instance.
The other parameters are character vectors naming the tracks for
each mode and overriding the modes specified by object
.
object
defaults to an empty
character vector.
The following methods are defined by rtracklayer for setting the
track modes through the generic ucscTrackModes(object) <- value
.
names
attribute.
tracks
and tracks<-
for just
getting or setting which tracks are visible (not of mode "hide").
# Tracks "foo" and "bar" are fully shown, "baz" is hidden modes <- ucscTrackModes(full = c("foo", "bar"), hide = "baz") # Update the modes to hide track "bar" modes2 <- ucscTrackModes(modes, hide = "bar")