scviva.tools.vision.get_normalized_copy#
- scviva.tools.vision.get_normalized_copy(X, method='znorm_columns')[source]#
Log2-transform then normalise X using the chosen method.
Mirrors R VISION’s
getNormalizedCopy: always appliesmatLog2(i.e.log2(x+1)) first, then the chosen normalisation. Sparse inputs are densified after the log transform.- Parameters:
- Return type:
- Returns:
np.ndarray of shape (n_cells, n_genes) Dense normalised matrix.
- Raises:
ValueError – If method is not one of the recognised strings.