View source: R/projectCellTypeWithError.R
projectCellTypeWithError | R Documentation |
Estimate the cellular composition from a DNA methylation profile and calculate the CETYGO score error metric associated with this estimate.
projectCellTypeWithError(YIN, coefs)
YIN |
a matrix of DNA methylation levels from the samples that require cell composition to be estimated. |
coefs |
A matrix of deconvolution model parameters including coefficients. This input can be generated with the pickCompProbesMatrix()$coefs |
A matrix with the estimated proportion of cell types, CETYGO and the number of sites missing from the model.
# using pre-trained model for whole blood provided with the package and
# sample whole blood profiles
rInd <- rownames(bulkdata)[rownames(bulkdata) %in% rownames(modelBloodCoef)]
predProp <- projectCellTypeWithError(bulkdata, modelBloodCoef[rInd, ])
head(predProp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.