NSP.transform#
missionbio.mosaic.algorithms.nsp.NSP.transform
- NSP.transform(reads: ndarray, scale: Optional[float] = None) Optional[Figure] #
Normalize read counts.
- Parameters:
- readsnp.ndarray
The protein read counts to be normalized. The shape should be (#cells, #antibodies)
- scaleOptional[float]
The amount by which the read counts are scaled down. This is calculated using NSP.get_scaling_factor if it is not provided.
- Returns:
- np.ndarray
The normalized read counts with the same shape as the input.