Scaling bulk data and signature matrix and estimate cell type proportion

music.iter(
  Y,
  D,
  S,
  Sigma,
  iter.max = 1000,
  nu = 1e-04,
  eps = 0.01,
  centered = FALSE,
  normalize = FALSE
)

Arguments

Y

vector of bulk tissue expression

D

matrix, Signature matrix

S

vector of Avg. Library size

Sigma

matrix of subject level variation (gene * cell type)

iter.max

numeric, maximum iteration number

nu

regulation parameter, when take reciprocal

eps

threshold of convergence

centered

logic, subtract avg of Y and D

normalize

logic, divide Y and D by their standard deviation

Value

a list same as nnls.weight.basic