sainsc.LazyKDE.assignment_score

property sainsc.LazyKDE.assignment_score: numpy.typing.NDArray[single] | None

Assignment score for each pixel.

Let x be the gene expression of a pixel, and i and j the signatures of the best and 2nd best scoring cell type, respectively. The assignment score is calculated as \(\frac{cos(\theta_{xi}) - cos(\theta_{xj})}{cos(\pi/2 - \theta_{ij})}\) where \(\theta\) is the angle between the corresponding vectors.

Type:

ndarray[single]