methyl_percent_sites {methylscaper} | R Documentation

## Calculates the percentage of methylated cells/molecules per site

### Description

Calculates the percentage of methylated cells/molecules per site

### Usage

    methyl_percent_sites(orderObject, makePlot = TRUE, ...)

### Arguments

`orderObject` | An object of class `orderObject`
`makePlot` | Logical, indicates whether to generate the percentage plot
`...` | Additional parameters used by the `plot` function.

### Value

The percent of molecules or cells methylated (endogenous (yellow) or accessible) at each site. Output is a list with names "red" and "yellow". Red represents the endogenous methylation and yellow represents the accessibility. Within each list object is a vector of the percent of cells/molecules methylated. The location of the site is also represent in the form CXX, where XX is the position of the site within the defined region.

### Examples

    data(singlemolecule_example)

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

[Package methylscaper version 1.0.1 Index]