track<--methods {rtracklayer}R Documentation

Laying tracks

Description

Methods for loading RangedData instances (tracks) into genome browsers.

Usage

## S4 method for signature 'BrowserSession, RangedData':
track(object, name = deparse(substitute(track)), view = FALSE, ...) <- value

Arguments

object A BrowserSession into which the track is loaded.
value The track(s) to load.
name The name(s) of the track(s) being loaded.
view Whether to create a view of the track after loading it.
... Arguments to pass on to methods.

Methods

The following methods are defined by rtracklayer. A browser session implementation must implement a method for either RangedData or RangedDataList. The base browserSession class will delegate appropriately.

object = "BrowserSession", value = "RangedData"
Load this track into the session.
object = "BrowserSession", value = "RangedDataList"
Load all tracks into the session.
object = "UCSCSession", value = "RangedDataList"
track(object, name = deparse(substitute(track)), view = FALSE, format = "gff") <- value: Load the tracks into the session using the specified format.

See Also

track for getting a track from a session.

Examples

## Not run: 
  session <- browserSession()
  track <- import(system.file("tests", "v1.gff", package = "rtracklayer"))
  track(session, "My Track") <- track
## End(Not run)

[Package rtracklayer version 1.4.1 Index]