track<–methods {rtracklayer}R Documentation

Laying tracks

Description

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

Usage

## S4 replacement 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. The arguments in ... are passed on to export.ucsc, so they could be slots in a TrackLine subclass or parameters to pass on to the export function for 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.14.1 Index]