ranges2names: ranges2names

ranges2namesR Documentation

ranges2names

Description

Intersection of genomic ranges

Usage

ranges2names(rangesA, rangesB)

Arguments

rangesA

A GenomicRanges::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 factor of same length as the rangesA GRanges object, indicating one name or a semicolon-separated list of names from the each rangesB object. The levels are in order of appearance to to maintain genomic coordinate sort order when the names are cluster names.

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)


charles-plessy/CAGEr documentation built on Oct. 27, 2024, 10:11 p.m.