AlmKanal
AlmKanal combines an ordered list of preprocessing steps into a pipeline. It checks the supported ordering constraints when the pipeline is created and runs the steps on MNE-Python data.
Create a pipeline with AlmKanal(steps=[...]), then pass the data to pipeline.run(data). The method returns the processed data and an MNE report.
almkanal.almkanal.AlmKanal
A pipeline for M/EEG preprocessing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
steps
|
list[AlmKanalStep]
|
List of preprocessing steps in the order they should be applied. |
required |
pick_params
|
dict or None
|
Parameters passed to mne.pick_types for channel selection. If None, no channel selection is performed. |
required |
run(data)
Applies each preprocessing step in sequence and returns the processed data, along with a report.
generate_json(path=None, max_elements=50)
This functions builds a JSON file containing the main settings for the applied cleaning steps. Parameters: path: The path to which a json file should be saved. If left to None no file is saved. max_elements: the maximum number of elements per numpy array or list to save in the json file.
return: A dictionary containing all the settings used in the almkanal pipeline.