uiGR: Reduce GRange object in gene level

Description Usage Arguments Value Author(s) Examples

View source: R/uiGR.R

Description

The function reduce overlapped GRanges objects with union or intersection method in gene level. Usually, distinct transcripts of a gene share several the same exon regions. The function can reduce these overlapped exon into union or intersection regions.

Usage

1
uiGR(GR, Reduce = "union")

Arguments

GR

GRange object with gene_id annotation.

Reduce

The methods to reduce the overlapped regions. The regions from different transcripts but the same gene can be overlapped. If it is "union", the overlapped regions from the same gene will be united together. If it is "intersection", the returned object will be the most shared regions among the transcripts in the same gene.

Value

The results return a GRanges object with gene_id annotation. If "union" is used, the results are the united regoins within each gene. If the "intersection" is used, the regions are the most shared regions in each gene.

Author(s)

Qiang Hu

Examples

1
2
3
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

qRNASeq documentation built on May 2, 2019, 4:26 p.m.