methyl_average_status: Calculate the average methylation/accessibility status across...

View source: R/summaryPlots.R

methyl_average_statusR Documentation

Calculate the average methylation/accessibility status across all cells/molecules.

Description

Calculate the average methylation/accessibility status across all cells/molecules.

Usage

methyl_average_status(orderObject, window_length = 20, makePlot = TRUE, ...)

Arguments

orderObject

An object of class orderObject

window_length

Length of the window to be used to compute a moving average. Default is 20.

makePlot

Logical, indicates whether to generate a line plot of average status.

...

Addition parameters used by the plot function.

Value

The proportion of methylated bases for each cell/molecule within a defined moving window. Output is a list with elements "meth_avg" and "acc_avg", indicating endogenous or accessible methylation respectively.

Examples


data(singlemolecule_example)

orderObj <- initialOrder(singlemolecule_example, Method = "PCA")
methyl_average_status(orderObj, makePlot = TRUE)


rhondabacher/methylscaper documentation built on Oct. 10, 2024, 8:18 a.m.