Meth_difference: Internal Use Function That calculates the methylation...

View source: R/DMR_test.R

Meth_differenceR Documentation

Internal Use Function That calculates the methylation difference between groups.

Description

This function calculate the methylation difference between groups of each region or each cytosine.

Usage

Meth_difference(output, diffgroup = NULL)

Arguments

output

refers to the output of Methmean_match.

diffgroup

refers to methylation difference between two groups, with the default NULL that is the max group - min group. The two groups can be manually select like diffgroup = c("group1", "group2").

Value

Outputs methylation difference between groups.

Examples

output_methdiff <- Meth_difference(output)
adjustedoutput_methdiff <- Meth_difference(adjustedoutput, diffgroup = c("group1", "group2"))


xiaowangCN/GeneDMRs documentation built on Nov. 22, 2023, 11:19 p.m.