50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

trackViewer (version 1.8.3)

track-class: Class "track"

Description

An object of class "track" represents scores of a given track.

Usage

## S3 method for class 'track,character,ANY':
setTrackStyleParam(ts, attr, value)
    ## S3 method for class 'track,character,ANY':
setTrackXscaleParam(ts, attr, value) 
    ## S3 method for class 'track,character,ANY':
setTrackYaxisParam(ts, attr, value)

Arguments

ts
An object of track.
attr
the name of slot of trackStyle object to be changed.
value
values to be assigned.

Objects from the Class

Objects can be created by calls of the form new("track", dat, dat2, type, format, style, name).

See Also

Please try to use importScore and importBam to generate the object.

Examples

Run this code
extdata <- system.file("extdata", package="trackViewer",
                       mustWork=TRUE)
    fox2 <- importScore(file.path(extdata, "fox2.bed"), format="BED")
    setTrackStyleParam(fox2, "color", c("red","green"))
    setTrackXscaleParam(fox2, "gp", list(cex=.5))
    setTrackYaxisParam(fox2, "gp", list(col="blue"))
    fox2$dat <- GRanges(score=numeric(0))

Run the code above in your browser using DataLab