NSP.scaling_factor#
missionbio.mosaic.algorithms.nsp.NSP.scaling_factor
- NSP.scaling_factor(reads: ndarray) Tuple[float, list] #
Identifies the appropriate scaling factor for oversequenced runs.
- Parameters:
- readsnp.ndarray
The protein read counts to be normalized. The shape should be (#cells, #antibodies)
- Returns:
- float
The factor to scale down the reads by.
- list
The indices of the antibodies in which the peak amplification was observed at the identified scaling factor.