ctrappy.stepfinder
Run step finding on a bleaching trace.
- ctrappy.stepfinder.find_steps(x, y, min_step_size, min_plateau_length=1)
Find steps in a signal using change-point analysis.
- Parameters:
x (numpy array of floats) – x values
y (numpy array of floats) – y values (signal).
min_step_size (float) – Minimum step size.
min_plateau_length (int) – Minimum length of plateaus. Default: 1.
- Returns:
step_locs (numpy array of ints) – Location indices of steps.
step_sizes (numpy array of floats) – Sizes of steps.
sig_det (numpy array of floats) – Detected signal, only containing steps.