methyl_proportion {methylscaper} | R Documentation

## Calculate the proportion of methylated bases for each cell/molecule

### Description

Calculate the proportion of methylated bases for each cell/molecule

### Usage

    methyl_proportion(orderObject, type = "yellow", makePlot = TRUE, ...)

### Arguments

`orderObject` | An object of class `orderObject`
`type` | Indicates which data set to compute proportions for. This should be 'met' or 'hcg' or 'red' for endogenous methylation; 'acc' or 'gch' or 'yellow' for accessibility.
`makePlot` | Indicates whether to plot a histogram of the proportions across all cells/molcules.
`...` | Additional parameters used by the `hist` function.

### Value

The proportion of methylated (endogenous (yellow) or accessible) bases for each cell/molecule. Output is vector with length the numbner of cells/molecules and contains a proportion.

### Examples

    data(singlemolecule_example)

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

[Package methylscaper version 1.0.1 Index]