| UCSCTrackModes-class {rtracklayer} | R Documentation |
Class "UCSCTrackModes"
Description
A vector of view modes ("hide", "dense", "full", "pack", "squish") for each track in a UCSC view.
Objects from the Class
Objects may be created by calls of the form
ucscTrackModes(object =
character(), hide = character(), dense = character(), pack = character(),
squish = character(), full = character()),
where object should be a character vector of mode names (with
its names attribute specifying the corresponding track names).
The other parameters should contain track names that override the
modes in object. Later parameters override earlier ones, so,
for example, if a track is named in hide and full,
it is shown in the full view mode.
Slots
.Data:Object of class
"character"holding the modes ("hide", "dense", "full", "pack", "squish"), with itsnamesattribute holding corresponding track names.labels:Object of class
"character"holding labels (human-readable names) corresponding to each track/mode.
Extends
Class "character", from data part.
Class "vector", by class "character", distance 2.
Methods
trackNames(object)Gets the names of the visible tracks (those that do not have mode "hide").
trackNames(object) <- valueSets the names of the visible tracks. Any tracks named in
valueare set to "full" if the are currently set to "hide" in this object. Any tracks not invalueare set to "hide". All other modes are preserved.object[i]Gets the track mode of the tracks indexed by
i, which can be any type of index supported by character vector subsetting. Ifiis a character vector, it indexes first by the internal track IDs (thenameson.Data) and then by the user-level track names (thelabelsslot).object[i] <- valueSets the track modes indexed by
i(in the same way as inobject[i]above) to those specified invalue.
Author(s)
Michael Lawrence
See Also
UCSCView on which track view modes may be set.