Learn R Programming

CimpleG (version 1.0.1)

get_cpg_annotation: Get CpG annotation from Illumina

Description

Get CpG annotation from Illumina

Usage

get_cpg_annotation(
  cpg_id,
  is_epic = TRUE,
  short_annotation = TRUE,
  silence_warnings = TRUE
)

Value

A table with the annotated CpGs in the same order as the provided signatures.

Arguments

cpg_id

A character vector with the CpG IDs from Illumina to annotate.

is_epic

A boolean, if TRUE, the annotation will be fetched from the EPIC array, otherwise from the 450k array. Default is TRUE.

short_annotation

A boolean, if TRUE, only a small number of columns from the full annotation reference will be kept. This leads to an easier to read output. Default is TRUE.

silence_warnings

A boolean, if TRUE, warnings produced during the downloading and loading of the data will be silenced. Default is TRUE.

Examples

Run this code
# \donttest{
library("CimpleG")

# read data
signatures <- c("cg14501977", "cg24548498")

# Get signature annotation
signature_annotation <- get_cpg_annotation(signatures)

# check signature annotation
signature_annotation
# }

Run the code above in your browser using DataLab