Learn R Programming

RnBeads (version 1.4.0)

rnb.annotation2data.frame: rnb.annotation2data.frame

Description

Transform the specified site, probe or region annotation to data.frame.

Usage

rnb.annotation2data.frame(annotation.table, add.names = TRUE)

Arguments

annotation.table
Annotation in the form of non-empty GRangesList object, as returned by rnb.get.annotation.
add.names
Flag indicating if element names should be extracted and returned also as a column named "ID" in the resulting data.frame. Note that element names, if present, are set to be the row names of the table.

Value

Annotation in the form of a single data.frame. The columns in this table include, among other, "Chromosome", "Start" and "End".

Examples

Run this code

library(RnBeads.hg19)
head(rnb.annotation2data.frame(rnb.get.annotation("probes450")))

Run the code above in your browser using DataLab