CytoSimplex.row_normalize#
- CytoSimplex.row_normalize(x)[source]#
Element-wise normalizes each row of a matrix by its l1 norm.
- Parameters
x (
Union[AnnData,ndarray,csr_matrix]) – The data to be normalized. When using ananndata.AnnData, x.X will be normalized in place.- Return type
Normalized data of the same class.