read_annot_beatson: Read gene annotation file from Beatson

Description Usage Arguments Value Author(s) See Also Examples

Description

read_annot_beatson reads a file containing gene annotation data from Beatson, using the scan function.

Usage

1
read_annot_beatson(file, chr_discarded = NULL, is_GRanges = TRUE)

Arguments

file

The name of the file to read data values from.

chr_discarded

A vector with chromosome names to be discarded.

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 two additional metadata columns:

These columns can be accessed as follows: granges_object$ensembl_id

Author(s)

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

See Also

read_chrom_size, read_bs_encode_haib

Examples

1
2
3
# Get the location of the annotated Beatson file
annot_beatson_file <- system.file("extdata", "annot_beatson.bed", package = "processHTS")
annot_beatson_data <- read_annot_beatson(file=annot_beatson_file, is_GRanges=TRUE)

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