Learn R Programming

GenomicAlignments (version 1.2.2)

map-methods: Mapping ranges between sequences

Description

map and pmap are defunct. Use mapCoords and pmapCoords instead.

A method for translating a set of input ranges through a GAlignments 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 GRangesList object is defined and documented in the GenomicRanges package.

Usage

"map"(from, to)

Arguments

from
The input ranges to map, usually a GenomicRanges
to
The alignment between the sequences in from and the sequences in the result.

Value

An object of class GRangesMapping, which consists of a Hits instance and GRanges instance.

Details

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.

See Also

mapCoords and pmapCoords methods.