Skip to contents

Deconvolution

Usage

deconvolute(
  methyl_set,
  method = deconvolution_methods,
  normalize_results = FALSE,
  ...
)

Arguments

methyl_set

A minfi MethylSet

method

A string specifying the method. Supported methods are 'epidish', 'flowsorted', 'methylcc', 'methylresolver'

normalize_results

Whether the deconvolution results should be normalized. Negative values will be put to 0, and the estimates will be normalized to sum to 1. Defaults to FALSE.

...

Additional parameters, passed to the algorithm used. See individual method documentations for details.

Value

A matrix with the probabilities of each cell-type for each individual. Rows are individuals, columns are cell types.

Examples


ex_data <- minfiData::MsetEx
#> Error in loadNamespace(x): there is no package called ‘minfiData’

result <- deconvolute(ex_data, method='epidish')
#> Loading required package: EpiDISH
#> Error in eval(expr, envir, enclos): object 'ex_data' not found