methyl_average_status {methylscaper} | R 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)

[Package methylscaper version 1.2.0 Index]