NameRegion: Name a region with several CpGs based on its genomic location

Description Usage Arguments Value Examples

View source: R/util2_NameRegion.R

Description

Name a region with several CpGs based on its genomic location

Usage

1
NameRegion(CpGsOrdered_df)

Arguments

CpGsOrdered_df

dataframe with columns for Probe IDs as character (cpg), chromosome number as character (chr) and genomic location as integer (pos)

Value

genome location of the CpGs, in the format of "chrxx:xxxxxx-xxxxxx"

Examples

1
2
3
  CpGs_char <- c("cg04677227", "cg07146435", "cg11632906", "cg20214853")
  CpGsOrdered_df <- OrderCpGsByLocation(CpGs_char, arrayType=c("EPIC"), output = "dataframe")
  NameRegion(CpGsOrdered_df)

lissettegomez/coMethDMR documentation built on April 25, 2021, 1:10 p.m.