NSP.transform#
missionbio.demultiplex.protein.nsp.NSP.transform
- NSP.transform(reads: ndarray, scale: Optional[float] = None) ndarray #
Normalize read counts.
- Parameters:
reads – np.ndarray The protein read counts to be normalized. The shape should be (#cells, #antibodies)
scale – Optional[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.
< Class NSP