cytonormpy.CytoNorm.calculate_quantiles

cytonormpy.CytoNorm.calculate_quantiles#

CytoNorm.calculate_quantiles(n_quantiles=99, min_cells=50, quantile_array=None)#

Calculates quantiles per batch, cluster and sample.

Parameters:
  • n_quantiles (int) – Number of quantiles to be calculated. Defaults to 99, which gives every percentile from 0.01 to 0.99.

  • min_cells (int) – Minimum cells per cluster in order to calculate quantiles. If the cluster falls short, no quantiles and therefore no spline function is calculated. In that case, the spline function will return the input values. Defaults to 50.

  • quantile_array (Optional[Union`[:py:class:`list[float], ndarray]]) – Contains user-defined quantiles passed by the user. n_quantiles will be ignored. Has to contain numbers between 0 and 1.

Return type:

None. Quantiles will be saved and used for later analysis.