create_prom_region: Create promoter regions from gene annotation data.

Description Usage Arguments Value Author(s) See Also Examples

Description

create_prom_region creates promoter region from gene annotation data. Using the TSS of gene annotation data as ground truth labels we create promoter regions N bp upstream and M bp downstream of TSS.

Usage

1
2
create_prom_region(annot_data, chrom_size = NULL, upstream = -7000,
  downstream = 7000)

Arguments

annot_data

A GRanges object containing the gene annotation data. This for example can be RNA-Seq data output from read_rna_encode_caltech.

chrom_size

Optional data.table containing chromosome sizes, e.g. using the read_chrom_size function.

upstream

Integer defining the length of bp upstream of TSS.

downstream

Integer defining the length of bp downstream of TSS.

Value

A GRanges object containing the promoter regions data.

The GRanges object contains one additional metadata column:

This column can be accessed as follows: granges_object$tss

Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

See Also

create_methyl_region, read_chrom_size, read_rna_encode_caltech

Examples

1
2
3
4
5
6
7
# Obtain the path to the file and then read it
rnaseq_file <- system.file("extdata", "rnaseq.bed", package = "BPRMeth")
annot_data <- read_rna_encode_caltech(rnaseq_file)
prom_region <- create_prom_region(annot_data)

# Extract the TSS
tss <- prom_region$tss

andreaskapou/BPRMeth-devel documentation built on May 12, 2019, 3:32 a.m.