This function calculates the unmixing error for each fluorophore, including intercept, coefficient and slope, using robust linear modeling.

get.unmixing.error(
  expr.data.unmix,
  fluorophores,
  scale.untransformed,
  transform.inv,
  flow.event.sample,
  asp
)

Arguments

expr.data.unmix

Data frame containing unmixed expression data.

fluorophores

Vector of fluorophore names.

scale.untransformed

Logical indicating whether to scale untransformed data.

transform.inv

Function to apply the inverse transformation.

flow.event.sample

Vector indicating the sample for each flow event.

asp

The AutoSpectral parameter list. Prepare using get.autospectral.param

Value

A list containing the unmixing correction matrices for intercept, coefficient and slope.