This function is to calculate the MuSiC deconvolution proportions
music_prop(
bulk.mtx,
sc.sce,
markers = NULL,
clusters,
samples,
select.ct = NULL,
cell_size = NULL,
ct.cov = FALSE,
verbose = TRUE,
iter.max = 1000,
nu = 1e-04,
eps = 0.01,
centered = FALSE,
normalize = FALSE,
...
)
matrix of expression for bulk data
SingleCellExperiment for single cell data
vector or list of gene names, default as NULL. If NULL, use all genes that provided by both bulk and single cell dataset.
character, the colData of single cell dataset used as clusters;
character,the colData of single cell dataset used as samples;
vector of cell types, default as NULL. If NULL, then use all cell types provided by single cell dataset;
data.frame of cell sizes. 1st column contains the names of cell types, 2nd column has the cell sizes per cell type. Default as NULL. If NULL, then estimate cell size from data;
logical. If TRUE, use the covariance across cell types;
logical, default as TRUE.
numeric, maximum iteration number
regulation parameter, take care of weight when taking reciprocal
Threshold of convergence
logic, subtract avg of Y and D
logic, divide Y and D by their standard deviation
a list with elements:
Estimates of MuSiC;
Estimates of NNLS;
Weight of MuSiC;
r.squared of MuSiC;
Variance of MuSiC estimates.