ranges2names {CAGEr} | R Documentation

## ranges2names

### Description

Intersection of genomic ranges

### Usage

    ranges2names(rangesA, rangesB)

### Arguments

`rangesA` | A `GRanges` object.
`rangesB` | A second GRanges object.

### Details

This private (non-exported) function intersects two genomic ranges and for each element of the first object returns the name of the elements of the second object that it intersects with.

### Value

A `Rle` character vector of same length as the `rangesA` GRanges object, indicating one name or a semicolon-separated list of names from the each `rangesB` object.

### Author(s)

Charles Plessy

### See Also

Other CAGEr annotation functions: `annotateCTSS`, `plotAnnot`, `ranges2annot`, `ranges2genes`

### Examples

    names(exampleZv9_annot) <- exampleZv9_annot$gene_name
    CAGEr:::ranges2names(CTSScoordinatesGR(exampleCAGEexp), exampleZv9_annot)

[Package CAGEr version 1.30.3 Index]