Creates an object of class BaseTrack

Description

Creates an object of class BaseTrack, which can represent many datasets containing a base given by a vector of positions and a corresponding vector with values for these base positions

Usage

1
makeBaseTrack(base, value, strand, trackOverlay, dp = NULL)

Arguments

base

Numeric vector of base positions

value

Numeric vector with values for these base positions

strand

Character either + or - representing the strand

trackOverlay

Object of class TrackOverlay, used when overlays are needed to be drawn

dp

Object of class DisplayPars representing the display parameters of the plot

Value

Object of class BaseTrack

Author(s)

Jim Bullard and Steffen Durinck

References

~put references to the literature/web site here ~

See Also

DisplayPars, gdPlot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (base, value, strand, segmentation, dp = NULL) 
{
    pt <- getClass("BaseTrack")@prototype
    if (is.null(dp)) 
        dp <- pt@dp
    if (missing(strand)) 
        strand <- pt@strand
    if (missing(segmentation)) 
        segmentation <- pt@segmentation
    if (missing(base)) 
        stop("Need base argument to know the base positions to plot the data on the genome")
    if (missing(value)) 
        stop("Need value argument")
    new("BaseTrack", base = base, value = value, strand = strand, 
        dp = dp, segmentation = segmentation)
  }

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.