Weight_cal: Calculate weight with cross-subject variance for each cell...

View source: R/analysis.R

Weight_calR Documentation

Calculate weight with cross-subject variance for each cell types

Description

Calculate weight with cross-subject variance for each cell types

Usage

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


xuranw/MuSiC documentation built on March 7, 2024, 11:45 a.m.