-
mapToGenome maps the pranges(x) to the ranges of
genome. Unless x and genome are of length 1,
both must be named and items of x are matched to items of
genome using their respective names. Names that do not
co-occur in x and genome are ignored. If we have
seqnames(x): "A", "B" and "C"
and
names(genome): "C", "A", "a",
"z", "A" and "A".
the names of the output will be
"A", "A", "A" and "C".
The output is ordered by (1) seqnames(x) and (2) the order of
the elements in genome.
In case less than length(x) are mapped, as for p["B"]
above, a message informs the user.
pmapToGenome is the element-wise (aka 'parallel')
version of mapToGenome. The i-th pranges(x) is mapped
to the i-th range in genome. x and genome must
have the same length and do not need to be named (names are
ignored).