pyavs.load_and_preprocess

pyavs.load_and_preprocess(subject_id, session, auto_download=True, blocks=None, include_meg=True, include_eye=True, preprocess_meg=True, apply_ica=False, **kwargs)[source]

Load and preprocess MEG + eye-tracking data for a subject/session.

Parameters:
  • subject_id (int) – Subject ID

  • session (int) – Session number

  • auto_download (bool, optional) – Whether to automatically download missing data (default: True)

  • blocks (list, optional) – List of blocks to process (default: None, process all)

  • include_meg (bool, optional) – Whether to load MEG data (default: True)

  • include_eye (bool, optional) – Whether to load eye tracking data (default: True)

  • preprocess_meg (bool, optional) – Whether to preprocess MEG data (default: True)

  • apply_ica (bool, optional) – Whether to apply ICA for artifact removal (default: False)

  • **kwargs – Additional preprocessing parameters

Returns:

Dictionary containing preprocessed data

Return type:

dict