map
is defunct. Use mapCoords
instead.A method for translating a set of input ranges through a GRangesList object. Returns a GRangesMapping object.
NOTE: The map
generic function is defined and
documented in the IRanges package.
A method for translating a set of input ranges through a
GAlignments object is defined and
documented in the GenomicAlignments package.
"map"(from, to)
GenomicRanges
from
and the
sequences in the result.hits
:
Contains the matching (overlaps) from ranges in from
to the ranges in to
. Matching can be many-to-one or
one-to-many. See ?`{Hits}`
for details.GRanges
:
Contains the mapped coordinates for ranges in from
that
are `within` ranges in to
. Length of the GRanges is the
same as the Hits
object and contains one row for each overlap.
Strand corresponds to the strand of the range in to
.
to
is taken to represent an alignment
of a sequence on a genome. The typical case is a set of transcript
models, as might be obtained via GenomicFeatures::exonsBy
.
The method translates the input ranges to be relative to the transcript
start. This is useful, for example, when predicting coding consequences
of changes to the genomic sequence. Note that output is produced only
for ranges in from
that fall completely `within` ranges in
to
.
## See ?mapCoords for examples
Run the code above in your browser using DataLab