Skip to contents

Get an intervals set of a gene promoter.

Usage

get_gene_promoter(gene, upstream = 500, downstream = 50, unify = FALSE)

Arguments

upstream

bp upstream to TSS

downstream

bp downstread from tss

unify

unify the intervals if there are multiple promoters. The start coordinate of the intervals will be the minimum of the starts and the end coordinate of the intervals will be the maximum of the ends.

name

The name of the gene ("name2" in UCSC files).

Value

an intervals set with the promoter of the gene. If unify is TRUE - the intervals will be unified to a single row.

Examples

if (FALSE) {
get_gene_promoter("GZMK")
}