music.iter: Scaling bulk data and signature matrix and estimate cell type...

View source: R/analysis.R

music.iterR Documentation

Scaling bulk data and signature matrix and estimate cell type proportion

Description

Scaling bulk data and signature matrix and estimate cell type proportion

Usage

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


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