cytonormpy.CytoNorm.calculate_splines#
- CytoNorm.calculate_splines(limits=None, goal='batch_mean')#
Calculates the spline functions of the expression values and the goal expression. The goal expression is calculated via the function specified in goal.
- Parameters:
limits (
Optional[Union`[:py:class:`list[float],ndarray]]) – A list or array of fixed intensity values. These values will be appended to the calculated quantiles and included to calculate the spline functions. By default, the spline functions are extrapolated linearly outside the observed data range, using the slope at the last data point as the slope for the extrapolation. Use limits to further control the behaviour outside the data range.goal (
Union[str,int]) – Function to calculate the goal expression per cluster and channel. Defaults to batch_mean, which calculates the mean over all batches. Can be any of batch_median, batch_mean or a specific batch passed as an int.
- Return type:
None