scglue.num.pcc_mat
- scglue.num.pcc_mat(X, Y=None)[source]
Pearson’s correlation coefficient (sparse friendly)
- Parameters:
X (
typing.Union[numpy.ndarray,scipy.sparse._matrix.spmatrix]) – First design matrixY (
typing.Union[numpy.ndarray,scipy.sparse._matrix.spmatrix,None]) – Second design matrix (optional)
- Return type:
- Returns:
pcc – Pearson’s correlation matrix among columns of X, if only X is given. Pearson’s correlation matrix between columns of X and columns of Y, if both X and Y are given.