Skip to content

poreflow.EventsDataFrame

Bases: DataFrame

Data frame storing events in a nanopore read

Data frame must contain the following columns: - start_idx (integers): The start index of the event in the measurement - end_idx (integers): The end index of the event - n_pts (int): The number of samples in the event - quality (float): The quality of the event - label (int): The label of the event

Other optional columns are: - start_time (float): The start time of the event in seconds. - end_time (float): The end time of the event - duration (float): The duration time of the event - ios (float): The local open state current during the event - channel (int): The channel number of the event. Useful when concatenating multiple event DataFrames.

Attributes:

Name Type Description
sfreq float

The sampling frequency.

handle File

TODO remove

trim_events(size=(5, 5), time_ms=None, recalculate_times=True)

Parameters:

Name Type Description Default
size tuple
(5, 5)
time_ms tuple

Time in milliseconds to trim off the start and end of an event

None
recalculate_times bool
True