cytonormpy._normalization.ExpressionQuantiles.add_nan_slice

cytonormpy._normalization.ExpressionQuantiles.add_nan_slice#

ExpressionQuantiles.add_nan_slice(batch_idx, cluster_idx)#

Adds np.nan of shape n_channels x n_quantile. This is needed if there are no cells in a specific cluster.

Parameters:
  • quantile_array – Numpy array of shape n_channels x n_quantiles.

  • batch_idx (int) – The batch axis that is used for inserting the values

  • cluster_idx (int) – The cluster axis that is used for inserting the values

Return type:

None