Skip to contents

This function computes a tangent matrix representing the diagonalized slope components of signal spread across fluorochromes, based on the system matrix and slope matrices from the USERM result object.

Usage

EstimateCoefMtx(Userm, A = NULL)

Arguments

Userm

A list containing USERM analysis results. Must include:

  • detectors: A character vector of detector names.

  • fluors: A character vector of fluorochrome names.

  • A: A system matrix mapping detectors to fluorochromes.

  • Res: A named list of result objects for each fluorochrome, each containing slopMtx.

Value

A square numeric matrix with fluorochrome names as both row and column names. Each entry represents the diagonalized slope component projected through the pseudo-inverse of the system matrix.

Details

The function uses the pseudo-inverse of the system matrix A to transform slope matrices from detector space to fluorochrome space. The diagonal elements of the transformed matrices are extracted and assembled into the final tangent matrix.

Examples

if (FALSE) { # \dontrun{
  tangent_mtx <- EstimateCoefMtx(Userm)
  print(tangent_mtx)
} # }