NSP.__init__

Contents

NSP.__init__#

missionbio.demultiplex.protein.nsp.NSP.__init__

NSP.__init__(jitter: float = 0.5, random_state: Optional[int] = None, sample_size: float = inf, max_zero_read_cells: float = 0.05) None#
Parameters:
  • jitter – float 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_size – int The number of cells to use to estimate the signal and background linear models. All cells are used when set to np.inf.

  • max_zero_read_cells – float The maximum percentage of cells that can have 0 reads after applying the scaling factor. If more than this percentage of cells have 0 reads, the scaling factor is considered too high and is by default set to 1.


< Class NSP