pyavs.load_and_preprocess_meg_run¶
- pyavs.load_and_preprocess_meg_run(subject_id: int, session: int, run: int, data_path: str | None = None, force_recompute: bool = False, save_preprocessed: bool = True, **preprocessing_kwargs) mne.io.Raw[source]¶
Load and preprocess MEG data for a single run.
- Parameters:
subject_id (int) – Subject ID
session (int) – Session number
run (int) – Run/block number
data_path (str, optional) – Path to data directory. If None, uses configured data path
force_recompute (bool, optional) – Whether to force recomputation even if preprocessed data exists (default: False)
save_preprocessed (bool, optional) – Whether to save preprocessed data (default: True)
**preprocessing_kwargs – Additional arguments passed to preprocess_meg_block
- Returns:
Preprocessed MEG data
- Return type: