get_TES: Extract the TES position as GenomicRanges

Description Usage Arguments Value Examples

View source: R/p99_utils.R

Description

This function extract the TES regions from the GenomicRanges. Internally, it invert the strand information of GenomicRanges and then use the promoters() method to extract the promoter region for this flipped ranges. Finally the strand information is switched back again.

Usage

1
get_TES(gr, up = 0, down = 1, ...)

Arguments

gr

A GenomicRange object

up

upstream region length. This is 'upstream' argument of GenomicRanges::promoters method

down

downstream region length. This is 'downstream' argument of GenomicRanges::promoters method

...

Other arguments to GenomicRanges::promoters function

Value

A GenomicRange object with TES position

Examples

1

lakhanp1/chipmine documentation built on March 6, 2021, 9:06 a.m.