postprocessor.core.multisignal.align.align¶
- class align(parameters)[source]¶
Bases:
PostProcessABC
Process to align a signal by corresponding events.
For example, aligning flavin fluorescence time series by the first birth event of the cell each time series is derived from.
- Attributes
- parameters
Methods
run(trace_df: pd.DataFrame, mask_df: pd.DataFrame)
Align signals by events.
- Attributes
- parameters
Methods
run
(trace_df, mask_df)Align signals by events.
as_function
default_parameters
Methods
__init__
(parameters)as_function
(data, *extra_data, **kwargs)default_parameters
(*args, **kwargs)run
(trace_df, mask_df)Align signals by events.
Attributes
parameters
- run(trace_df, mask_df)[source]¶
Align signals by events.
- Parameters
- trace_dfpd.DataFrame
Signal time series, with rows indicating individual time series (e.g. from each cell), and columns indicating time points.
- mask_dfpd.DataFrame
Event time series/mask, with rows indicating individual cells and columns indicating time points. The values of each element are either 0 or 1 – 0 indicating the absence of the event, and 1 indicating the presence of the event. Effectively, this DataFrame is like a mask. For example, this DataFrame can indicate when birth events are identified for each cell in a dataset.