DARegionAnalysis(set, range, omicset = "methylation", variable_names, variable_types = rep(NA, length(variable_names)), covariable_names = NULL, covariable_types = rep(NA, length(covariable_names)), equation = NULL, num_var = NULL, labels = NULL, sva = FALSE, use_snps = TRUE, snps_cutoff = 0.01, region_methods = c("blockFinder", "bumphunter", "DMRcate"), shrinkVar = FALSE, probe_method = "robust", max_iterations = 100, num_cores = 1, verbose = FALSE, nperm = 1000, ...)MethylationSet, ExpressionSet or MultiDataSet.GenomicRanges with the desired range.MultiDataSet allows to choose between methylation and
expression (valid values are: "methylation" or "expression").DARegion. If
"none", region analysis is not performed.DAPipeline function.AnalysisRegionResult object
DAPipeline is run. RDA test of the region is performed, returning the
R2 between the variables and the beta matrix and a p-value of this R2.
preparePhenotype, DAPipeline
if (require(minfiData)){
set <- prepareMethylationSet(getBeta(MsetEx)[1:1000, ], pheno = pData(MsetEx))
range <- GenomicRanges::GRanges(seqnames=Rle("chrX"),
ranges = IRanges(30000, end = 123000000))
res <- DARegionAnalysis(set, range = range, variable_names = "Sample_Group",
probe_method = "ls")
res
}
Run the code above in your browser using DataLab