SplitCpGDFbyRegion: Split CpG dataframe by Subregion

Description Usage Arguments Value Examples

View source: R/util3_SplitCpGsSubregionsDataFrameToList.R

Description

Split a dataframe of CpGs and comethylated subregions to a list of CpGs in each subregion

Usage

1
2
3
4
5
6
SplitCpGDFbyRegion(
  CpGsSubregions_df,
  genome = c("hg19", "hg38"),
  arrayType = c("450k", "EPIC"),
  returnAllCpGs = TRUE
)

Arguments

CpGsSubregions_df

data frame with CpG and subregion number

genome

Human genome of reference hg19 or hg38

arrayType

Type of array, 450k or EPIC

returnAllCpGs

indicates if outputting all the CpGs in the region when there is not a contiguous comethylated region or only the CpGs in the contiguous comethylated regions

Value

a list of comethylated subregions CpGs for a pre-defined region

Examples

1
2
3
4
5
6
7
8
9
   data(betaMatrix_ex4)
   CpGs_df <- MarkComethylatedCpGs(betaCluster_mat = betaMatrix_ex4)
   CpGsSubregions_df <- FindComethylatedRegions(CpGs_df)

   SplitCpGDFbyRegion(
     CpGsSubregions_df,
     genome = "hg19",
     arrayType = "450k"
   )

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