scviva.tools.vision.get_normalized_copy_sparse#
- scviva.tools.vision.get_normalized_copy_sparse(X, method='znorm_columns')[source]#
Log2-transform then build a sparse-preserving
NormDataobject.Mirrors R VISION’s
getNormalizedCopySparse. Instead of materialising the normalised matrix, the offsets and scale factors are pre-computed and stored in aNormDatainstance. CallNormData.toarray()to obtain the dense result when needed."rank_norm_columns"is not supported in the sparse path (it must densify; useget_normalized_copy()instead).- Parameters:
- Return type:
- Returns:
NormData Lazy normalisation container.
- Raises:
ValueError – If method is not supported by the sparse path.