methyl_proportion: Calculate the proportion of methylated bases for each...

View source: R/summaryPlots.R

methyl_proportionR 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)

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