IdentifyMCB_parallel: Identification of methylation correlated blocks with parallel...

View source: R/IdentifyMCB_parallel.R

IdentifyMCB_parallelR Documentation

Identification of methylation correlated blocks with parallel algorithm

Description

This function is used to partition the genome into blocks of tightly co-methylated CpG sites,
Methylation correlated blocks parallelly. This function calculates Pearson correlation coefficients between
the beta values of any two CpGs < CorrelationThreshold was used to identify boundaries between any two
adjacent markers indicating uncorrelated methylation. Markers not separated by a boundary were combined into MCB.
Pearson correlation coefficients between two adjacent CpGs were calculated.

Usage

IdentifyMCB_parallel(
  MethylationProfile,
  method = c("pearson", "spearman", "kendall")[1],
  CorrelationThreshold = 0.8,
  PositionGap = 1000,
  platform = "Illumina Methylation 450K",
  verbose = T
)

Arguments

MethylationProfile

Methylation matrix is used in the analysis.

method

method used for calculation of correlation,
should be one of "pearson","spearman","kendall". Defualt is "pearson".

CorrelationThreshold

coef correlation threshold is used for define boundaries.

PositionGap

CpG Gap between any two CpGs positioned CpG sites less than 1000 bp (default) will be calculated.

platform

This parameter indicates the platform used to produce the methlyation profile. You can use your own annotation file.

verbose

True as default, which will print the block information for each chromosome.

Details

Currently, only illumina 450k platform is supported, the methylation profile need to convert into matrix format.

Value

Object of class list with elements:

MCBsites Character set contains all CpG sites in MCBs.
MCBinformation Matrix contains the information of results.

Author(s)

Xin Yu

References

Xin Yu, De-Xin Kong, EnMCB: an R/bioconductor package for predicting disease progression based on methylation correlated blocks using ensemble models, Bioinformatics, 2021, btab415

Examples

data('demo_data',package = "EnMCB")

#import the demo TCGA data with 10000+ CpGs site and 455 samples
#remove # to run
res<-IdentifyMCB_parallel(demo_data$realdata)
demo_MCBinformation<-res$MCBinformation



whirlsyu/EnMCB documentation built on Jan. 25, 2023, 4:33 a.m.