pipeline
This pipeline creation tool is designed to help you create a pipeline to process biologcal signal data. It aims to provide an end-to-end solution for processing biological signal data. Ideally you should be able to use this tool to create a pipeline that takes your signal as an input and produce processed signal and a feature vector as output.
bio_channel
- class Channel(signal, name, sampling_rate)[source]
Bases:
object
Biological signal channel class
- Parameters:
signal (ArrayLike) –
name (str) –
sampling_rate (float) –
- property duration
- get_window(window_index)[source]
Returns a window of the channel :param window_index: Index of the window to return :type window_index: int
- Returns:
window – Window of the channel
- Return type:
ArrayLike
- property n_windows
- property segmented
bio_data
- class Bio_Data[source]
Bases:
object
Signal object with add and iterate process objects
- add_channel(signal, channel_name=None, sampling_rate=None, modify_existed=False, is_event=False)[source]
Add a channel to the signal :param signal: Signal to add :type signal: Union[ArrayLike, Channel ,Event_Channel] :param channel_name: Name of the channel :type channel_name: str :param sampling_rate: Sampling rate of the signal :type sampling_rate: Union[int, float] :param modify_existed: If True, if a channel with the same name already exists, it will be overwritten
If False, if a channel with the same name already exists, a new name will be generated
- Parameters:
is_event (bool) – If True, the signal will be converted to an Event_Channel object If False, the signal will be converted to a Channel object
signal (_SupportsArray[dtype] | _NestedSequence[_SupportsArray[dtype]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | Channel | Event_Channel) –
channel_name (str | None) –
sampling_rate (int | float | None) –
modify_existed (bool) –
- property channel_count
- join(other, overwrite=False)[source]
Join two Bio_Data objects :param other: Bio_Data object to join :type other: Bio_Data :param overwrite: If True, if a channel with the same name already exists, it will be overwritten
If False, if a channel with the same name already exists, a new name will be generated
- Parameters:
other (Bio_Data) –
overwrite (bool) –
- property multichannel