Utils (autoclean.utils)#
Bids#
Converts a single EEG data file into BIDS format with default/dummy metadata. |
|
Generates a reproducible numeric participant ID from a filename using MD5 hashing. |
|
Creates BIDS dataset_description.json file. |
|
Creates BIDS participants.json sidecar file describing participants.tsv columns. |
Config#
Load and validate the autoclean configuration file. |
|
Validate signal processing parameters for physical constraints. |
|
Validate the EEG system for a given task. |
|
Hash and encode a YAML file or dictionary. |
|
Decode a compressed and encoded YAML string. |
Database#
Set the global database path. |
|
Get a run record from the database by run ID. |
|
Manage database operations with thread safety. |
FileSystem#
Set up and validate directory structure for processing pipeline. |
Logging#
Configure the logger based on verbosity level and output directory. |
|
Enhanced logging function with support for lazy evaluation and context. |
Enum for log levels matching MNE's logging levels. |
Montage#
Load valid montages from configuration file. |
|
Get mapping from 10-20 system to GSN-HydroCel channel names. |
|
Get mapping from GSN-HydroCel to 10-20 system channel names. |
|
Convert between 10-20 and GSN-HydroCel channel names. |
|
Get standard channel set converted to appropriate montage type. |
|
Validate and filter channel list based on available channels. |