Calculate weight with cross-subject variance for each cell types

Weight_cal(p, M.S, Sigma)

Arguments

p

vector, cell type proportions

M.S

vector of average library size for each cell type

Sigma

gene by cell type matrix. Each entry is the cross-subject variance.

Value

vector of weight