Skip to contents

Computes a hotspot matrix based on a user-defined matrix A, using specified detectors and fluorophores. The function extracts a submatrix from A, calculates its Gram matrix, applies the Moore-Penrose pseudoinverse, and returns the square root of the absolute values of the result.

Usage

EstimateHotspotMtx(A)

Arguments

A

A numeric matrix with named rows and columns representing detectors and fluorophores.

Value

A numeric matrix representing the estimated hotspot matrix, derived from the pseudoinverse of the Gram matrix of the selected submatrix.

Details

The function performs the following steps:

  1. Computes the Gram matrix: t(A) %*% A.

  2. Applies the Moore-Penrose pseudoinverse to the Gram matrix.

  3. Takes the square root of the absolute values of the pseudoinverse matrix.