| 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.
trackNames and trackNames<- 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")