NSP.__init__#

missionbio.mosaic.algorithms.nsp.NSP.__init__

NSP.__init__(jitter: float = 0.5, random_state: Optional[int] = None, sample_size: int = inf) None#
Parameters:
jitterfloat

The standard deviation of the jitter to be added to the read counts before applying the normalization. The jitter is sampled from a normal distribution cenetered at 0. This is only applicable for NSP and asinh

random_state: int

The random state to use for the NSP and asinh methods.

sample_sizeint

The number of cells to use to estimate the signal and background linear models. All cells are used when set to np.inf.