FlowCytometryTools.FCPlate.apply

FCPlate.apply(func, ids=None, applyto='measurement', output_format='DataFrame', noneval=nan, setdata=False, dropna=False)

Apply func to each of the specified measurements.

Parameters:

func : callable

Accepts a Measurement object or a DataFrame.

ids : hashable| iterable of hashables | None

Keys of measurements to which func will be applied. If None is given apply to all measurements.

applyto : ‘measurement’ | ‘data’

‘measurement’ : apply to measurements objects themselves. ‘data’ : apply to measurement associated data

output_format: ‘DataFrame’ | ‘dict’ :

noneval : obj

Value returned if applyto is ‘data’ but no data is available.

setdata : bool

Whether to set the data in the Measurement object. Used only if data is not already set.

dropna : bool

whether to remove rows/cols that contain no measurements.

Returns:

DataFrame/Dictionary containing the output of func for each Measurement. :