intersect_cgi_tss: Keep CGIs that intersect with promoter regions

Description Usage Arguments Value Author(s) See Also

Description

intersect_cgi_tss keeps only CpG islands that overlap with promoter regions N bp upstream and M bp downstream of TSS.

Usage

1
2
3
intersect_cgi_tss(cgi_file, rna_files, chrom_size_file = NULL,
  chr_discarded = NULL, upstream = -100, downstream = 100,
  unique_tss = FALSE)

Arguments

cgi_file

The name of the CGI '.bed' formatted file to read data values from.

rna_files

The name of the RNA-Seq '.bed' formatted file to read data values from.

chrom_size_file

Optional name of the file containing genome chromosome sizes

chr_discarded

A vector with chromosome names to be discarded.

upstream

Integer defining the length of bp upstream of TSS.

downstream

Integer defining the length of bp downstream of TSS.

unique_tss

Logical, indicating if CGIs should match only to unique TSS, default false, so as to consider strand direction.

Value

The remaining CGIs which intersect with promoter regions stored in a GRanges object.

Author(s)

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

See Also

create_prom_region


andreaskapou/processHTS documentation built on May 12, 2019, 3:33 a.m.