mapToAlignments
instead.A method for translating a set of input ranges through a GAlignments object. Returns a GenomicRanges object.
NOTE: The mapCoords
generic function is
defined and documented in the IRanges package. A method for
translating a set of input ranges through a
GRangesList object is defined and documented
in the GenomicRanges package.
"mapCoords"(from, to, ...)
GRanges
.from
and the
sequences in the result.GRanges
object of mapped coordinates with matching data
as metadata columns (`fromHits` and `toHits`).Matching data are the result of calling findOverlaps
with
type `within` on ranges in from
(the query) and the
ranges in to
(the subject). Matching can be many-to-one
or one-to-many; one row is reported for each match.
mapToAlignments
instead. Each element in to
is taken to represent the
alignment of a (read) sequence. The CIGAR string is used to
translate the input ranges to be relative to the read start. This
is useful, for example, when determining the cycle (read position)
at which a particular genomic mismatch occurs.
## DEFUNCT! See ?mapToAlignments for a replacement.
Run the code above in your browser using DataLab