Description Usage Arguments Value
View source: R/cell_composition.R
This is a reference-based cell composition estimation. The function takes a reference methylation status matrix (rows for probes and columns for cell types, can be obtained by getRefSet function) and a query beta value measurement. The length of the target beta values should be the same as the number of rows of the reference matrix. The method assumes one unknown component. It outputs a list containing the estimated cell fraction, the error of optimization and methylation status of the unknown component.
1 | estimateCellComposition(g, q, refine = TRUE, dichotomize = FALSE, ...)
|
g |
reference methylation |
q |
target measurement: length(q) == nrow(g) |
refine |
to refine estimate, takes longer |
dichotomize |
to dichotomize query beta value before estimate, this relieves unclean background subtraction |
... |
extra parameters for optimization, this includes temp - annealing temperature (0.5) maxIter - maximum iteration to stop after converge (1000) delta - delta score to reset counter (0.0001) verbose - output debug info (FALSE) |
a list of fraction, min error and unknown component methylation state
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.