cytonormpy._normalization.Splines

Contents

cytonormpy._normalization.Splines#

class cytonormpy._normalization.Splines(batches, clusters, channels)#

Class to hold splines in a dictionary of shape

{batch: {cluster: {channel: splinefunc, …}}}

Methods

add_spline(spline)

Adds the spline function according to from the dict according to batch, cluster and channel.

get_spline(batch, cluster, channel)

Returns the correct spline function according to batch, cluster and channel.

remove_spline(batch, cluster, channel)

Deletes the spline function according to from the dict according to batch, cluster and channel.

transform(data, batch, cluster, channel)

Extracts the correct spline function according to batch, cluster and channel and returns the corrected data according to this spline function.