mapNamedRangesToSets: Map named ranges to corresponding set of named ranges

Description Usage Arguments Details Value Examples

View source: R/mapNamedRangesToSets.R

Description

Map named ranges to corresponding set of named ranges

Usage

1
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

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

netDx documentation built on Dec. 11, 2020, 2:01 a.m.