Description Methods See Also Examples
Generics for getting and setting UCSC track visibility modes ("hide", "dense", "full", "pack", "squish").
The following methods are defined by rtracklayer for getting the
track modes through the generic 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 ids given in the names
attribute. Note
that object
can be a UCSCTrackModes
instance, as
UCSCTrackModes
extends character
.
The other parameters are character vectors identifying the tracks for
each mode and overriding the modes specified by
object
.
The same interface as above, except object
defaults to an empty
character vector.
Gets modes for tracks in the view.
Gets default modes for the tracks in the session. These are the modes that will be used as the default for a newly created view.
The following methods are defined by rtracklayer for setting the
track modes through the generic ucscTrackModes(object) <- value
.
Sets the modes for the tracks in the view.
Sets the modes from a character vector of mode names, with the
corresponding track names given in the names
attribute.
trackNames
and trackNames<-
for just
getting or setting which tracks are visible (not of mode "hide").
1 2 3 4 | # 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.