pyavs.apply_ica¶
- pyavs.apply_ica(raw: mne.io.Raw, ica: mne.preprocessing.ICA, exclude: List[int] | None = None, verbose: bool = True) mne.io.Raw[source]¶
Apply ICA to remove specified components.
- Parameters:
raw (mne.io.Raw) – MEG raw data.
ica (mne.preprocessing.ICA) – Fitted ICA object.
exclude (list of int, optional) – Component indices to exclude (default: None, uses ica.exclude).
verbose (bool, optional) – Whether to log progress.
- Returns:
MEG data with ICA applied.
- Return type: