OrderCpGsByLocation: Order CpGs by genomic location

Description Usage Arguments Value Examples

View source: R/util1_OrderCpGsByLocation.R

Description

Order CpGs by genomic location

Usage

1
2
3
4
5
6
OrderCpGsByLocation(
  CpGs_char,
  genome = c("hg19", "hg38"),
  arrayType = c("450k", "EPIC"),
  output = c("vector", "dataframe")
)

Arguments

CpGs_char

vector of CpGs

genome

Human genome of reference hg19 or hg38

arrayType

Type of array, 450k or EPIC

output

vector of CpGs or dataframe with CpGs, CHR, MAPINFO

Value

vector of CpGs ordered by location or dataframe with CpGs ordered by location (cpg), chromosome (chr), position (pos)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
   CpGs_char <- c("cg04677227", "cg07146435", "cg11632906", "cg20214853")
   OrderCpGsByLocation(
     CpGs_char,
     genome = "hg38",
     arrayType = "EPIC",
     output = "dataframe"
   )

   CpGs_char <- c("cg04677227", "cg07146435", "cg11632906", "cg20214853")
   OrderCpGsByLocation(
     CpGs_char,
     genome = "hg19",
     arrayType = "450k",
     output = "vector"
   )

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