mapNamedRangesToSets {netDx} | R Documentation

## Map named ranges to corresponding set of named ranges

### Description

Map named ranges to corresponding set of named ranges

### Usage

    mapNamedRangesToSets(gr, rangeList, verbose = FALSE)

### Arguments

`gr` | (GRanges) named ranged to be grouped
`rangeList` | (list) sets of range names
`verbose` | (logical) print detailed messages

### Details

Example application is when we have named ranges each corresponding to genes or regulatory elements, and we wish to group these ranges based on metabolic pathway.

### Value

RangeList. keys are names of `rangeList`, values are GRanges

### Examples

    data(genes,pathwayList);
    gene_GR<-GenomicRanges::GRanges(genes$chrom,
      IRanges::IRanges(genes$txStart,genes$txEnd),
    		name=genes$name2)
    path_GRList <- mapNamedRangesToSets(gene_GR,pathwayList)

[Package netDx version 1.1.4 Index]