read_encode_cgi: Read file containing CpG island locations

Description Usage Arguments Value Author(s) See Also Examples

Description

read_encode_cgi reads a file containing CpG island (CGI) locations in the human genome using the fread function.

Usage

1
read_encode_cgi(file, is_GRanges = TRUE)

Arguments

file

The name of the file to read data values from.

is_GRanges

Logical: if TRUE a GRanges object is returned, otherwise a data.frame object is returned.

Value

A GRanges object if is_GRanges is TRUE, otherwise a data.table object.

The GRanges object contains one additional metadata column:

This column can be accessed as follows: granges_object$id

Author(s)

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

See Also

read_rna_encode_caltech, read_bs_encode_haib

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Download the file and change the working directory to that location
file <- "name_of_CGI_file")
cgi_data <- read_encode_cgi(file)

# Extract the CGI ID
cgi_id <- cgi_data$id

## End(Not run)

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