Order CpGs by genomic location
vector of CpGs
Human genome of reference: hg19 or hg38
Type of array: 450k or EPIC
A GRanges object with the genome manifest (as returned by
ExperimentHub
or by
ImportSesameData
). This function by default ignores this
argument in favour of the genome
and arrayType
arguments.
Whether strand can be ignored, default is TRUE
vector of CpGs or dataframe with CpGs, CHR, MAPINFO
vector of CpGs ordered by location or dataframe with CpGs ordered by location (cpg), chromosome (chr), position (pos)
CpGs_char <- c("cg04677227", "cg07146435", "cg11632906", "cg20214853")
OrderCpGsByLocation(
CpGs_char,
genome = "hg19",
arrayType = "450k",
ignoreStrand = TRUE,
output = "dataframe"
)
#> snapshotDate(): 2021-05-18
#> see ?sesameData and browseVignettes('sesameData') for documentation
#> chr pos cpg
#> 1 chr10 100028236 cg20214853
#> 2 chr10 100028320 cg04677227
#> 3 chr10 100028468 cg11632906
#> 4 chr10 100028499 cg07146435