Description Usage Arguments Value
View source: R/convertCellTypes.R
Takes betas from a decon run, using any cell type names whatsoever, and maps them back to the "official" cell types we use. Allows for multiple rows of beta to map to the same official cell type, in which case those rows will be added up.
1 |
beta |
K * n matrix of estimated beta values (cell type abundances) |
matching |
A list object holding the mapping from beta's cell names to official cell names. See str(safeTME.matches) for an example. |
stat |
The function used to combine related cell types. Defaults to sum. |
na.rm |
Whether to ignore NAs while computing stat |
sigma |
A list of covariance matrices of beta estimates, in the format output by spatialdecon. |
A list with two elements:
beta: a matrix of cell abundances, with specified cell types added together
sigma: an array of covariance matrices for each observation's beta vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.