read_annotation: Read a annotation file

Description Usage Arguments Value Author(s) Examples

View source: R/read_data.R

Description

read_annotation reads a file containing annotation data, which will be used to select genomic regions for downstream analysis. The annotation file format is the following: "chromosome", "EnsemblID", "name","start", "end", "strand".

Usage

1

Arguments

file

the path of annotation file

Value

A GRanges object. The GRanges object contains three additional metadata columns:

Author(s)

Hongen Kang geneprophet@163.com

Examples

1
2
3
4
5
6
7
8
# Obtain the path to files
## Not run: 
#' file <- system.file("extdata", "human_chr22_annotation.txt", package = "BSDMR")
human_anno <- read_annotation(file)
file <- system.file("extdata", "mouse_chr15_annotation.txt", package = "BSDMR")
mouse_anno <- read_annotation(file)

## End(Not run)

geneprophet/BSDMR documentation built on March 3, 2021, 5:50 a.m.