Learn R Programming

IRanges (version 2.0.1)

map-methods: Mapping of ranges to another sequence

Description

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

The map generic converts a set of ranges to the equivalent ranges on another sequence, through some sort of alignment between sequences, and outputs a GRangesMapping object. There are two components of that object: the transformed granges, and the hits, a Hits object of the same length that matches each input range to a destination sequence (useful when the alignment is one/many to many). The pmap function is simpler: it treats the two inputs as parallel vectors, maps each input range via the corresponding alignment, and returns the mapped ranges. There is one result per input element, instead of the many-to-many result from map.

Usage

map(from, to, ...) pmap(from, to, ...)

Arguments

from
Typically an object containing ranges to map.
to
Typically an object representing an alignment.
...
Arguments to pass to methods

See Also

  • See ?mapCoords and pmapCoords.