Usage
AlignedReadTrack(range=NULL, start=NULL, end=NULL, width=NULL, chromosome, strand, genome,
stacking="squish", name="AlignedReadTrack", coverageOnly=FALSE, ...)
Arguments
range
An object of class GRanges
, or a
data.frame
which will be coerced into one in which case it
needs to contain at least the three columns:
[object Object],[object Object]
Alternatively, the range
argument may be missing, in which
case the relevant information has to be provided as individual
function arguments (see below).
start, end, width
Integer vectors, giving the start and the end
end coordinates for the individual track items, or their width. Two
of the three need to be specified, and have to be of equal length or
of length one, in which case this value will be recycled. Otherwise,
the usual R recycling rules for vectors do not apply.
strand
Character vector, the strand information for the
individual track items. Needs to be of equal length as the
start, end
or width
vectors, or of length 1. Please
note that grouped items need to be on the same strand, and erroneous
entries will result in casting of an error.
chromosome
The chromosome on which the track's genomic ranges
are defined. A valid UCSC chromosome identifier. Please note that at
this stage only syntactic checking takes place, i.e., the argument
value needs to be a single integer, numeric character or a character
of the form chrx
, where x may be any
possible string. The user has to make sure that the respective
chromosome is indeed defined for the the track's genome.
genome
The genome on which the track's ranges are
defined. Usually this is a valid UCSC genome identifier, however
this is not being formally checked at this point.
stacking
The stacking type for overlapping items of the
track. One in c(hide, dense, squish, pack,full)
. Currently,
only hide (don't show the track items, squish (make best use of the
available space) and dense (no stacking at all) are implemented.
name
Character scalar of the track's name used in the title
panel when plotting.
coverageOnly
Instead of storing individual reads, just compute
the coverage and store the resulting coverage vector.
...
Additional items which will all be interpreted as further
display parameters.
Objects from the Class
Objects can be created using the constructor function AlignedReadTrack
.Extends
Class "StackedTrack"
, directly.
Class "RangeTrack"
, by class "StackedTrack",
distance2.
Class "GdObject"
, by class "StackedTrack",
distance3.