API Reference¶
This page indexes the full pyavs top-level API (everything importable as
pyavs.<name>). For richer, docstring-heavy documentation organized by topic, see the
per-submodule pages below. AVSComposer, EyeTrackingPlotter, AVSRemote and
open_remote are documented in full on their dedicated pages (Preprocessing (pyavs.preprocessing),
Visualization (pyavs.visualization), Remote Access (pyavs.remote)) rather than duplicated below.
Top-Level API¶
Configure pyavs data directory once per machine/environment. |
|
Check if data is available for a subject/session. |
|
Load eye tracking events and messages for a subject/session. |
|
Load experiment log for a subject/session. |
|
Load anatomical data path for a subject. |
|
Load scene image paths, fetching from COCO on demand if not shipped locally. |
|
Load and enrich eye tracking events for multiple subjects/sessions. |
|
Add fixation sequence positions to events dataframe. |
|
Add cross-event information (saccade-fixation relationships). |
|
Load and preprocess eye-tracking data for multiple subjects/sessions. |
|
Load raw MEG data for a specific subject/session/run. |
|
Load preprocessed MEG data for a specific subject/session/run. |
|
Load MEG data for all runs in a session. |
|
Load and preprocess MEG data for a single run. |
|
Add object labels to fixation events using transformed AVS scene annotations. |
|
Preprocess eye tracking events by removing artifacts and outliers. |
|
Apply Maxwell filtering (tSSS) to MEG data. |
|
Apply bandpass filtering to MEG data. |
|
Resample MEG data to a new sampling frequency. |
|
Complete preprocessing pipeline for a single MEG block. |
|
Apply precomputed ICA solution to MEG data. |
|
Compute ICA decomposition on MEG data. |
|
Apply ICA to remove specified components. |
|
Find ICA components related to cardiac artifacts. |
|
Find ICA components correlated with per-scene XY gaze position. |
|
Full ICA pipeline with eye tracking XY correlation for one subject/session. |
|
Wrap eye tracking samples from a CSV DataFrame into an MNE RawArray. |
|
Align ET RawArray to MEG Raw using shared scene onset events. |
|
Create MEG epochs based on eye tracking events using the AVS composer approach. |
|
Get mapping of MEG trigger names to codes. |
|
Repair corrupted MEG trigger events. |
|
Here we define a dictionary to map the event codes to the event names. |
|
Returns a list of all avs blocks in the requested session. |
|
Returns the timestamp of the scene onset in the MEG data. |
|
Adds eye movement based event triggers (fixation, saccade) to the raw neuro data. |
|
Attach scene IDs and trial information to eye tracking samples using pyAVS conventions. |
|
Convenience function to load samples file and attach scene information. |
|
Validate the scene ID assignment results for samples. |
|
Create forward model for source reconstruction. |
|
Create BEM (Boundary Element Method) model for source reconstruction. |
|
Set up coregistration between MEG and MRI coordinate systems. |
|
Load a forward model from the dataset. |
|
Apply source reconstruction to epoched data. |
|
Compute LCMV beamformer filters. |
|
Compute population codes for different experimental conditions. |
|
Extract data from regions of interest. |
|
Save source space data in HDF5 format. |
|
Save annotated Raw data in HDF5 format. |
|
Save population codes to HDF5 file in standardized format. |
|
Find population codes files for a subject with optional parameter filtering. |
|
List all available parameter sets in the population codes storage. |
|
Load data from HDF5 files. |
|
Create cortical source space. |
|
Get ROI labels from FreeSurfer parcellation. |
|
Get Glasser atlas ROI names. |
|
Create a joint plot of evoked MEG data: topomaps above, butterfly + GFP below. |
|
Plot median ERF (Event-Related Field) for MEG sensor space data. |
|
Create an overview plot of sensor space MEG data. |
|
Combine fixation events from all pilot subjects into one enriched DataFrame. |
|
Combine enriched gaze samples from all pilot subjects into one DataFrame. |
|
Add scene-centred and normalised gaze coordinates to raw samples. |
|
Load and preprocess MEG + eye-tracking data for a subject/session. |
|
Extract epochs from preprocessed subject data. |
Browse by Topic¶
- Data Loading (pyavs.dataloader)
- Preprocessing (pyavs.preprocessing)
- Source Reconstruction (pyavs.source)
- Scene Analysis (pyavs.scenes)
- Captions (pyavs.captions)
- Utilities (pyavs.utils)
- Configuration (pyavs.config)
- Visualization (pyavs.visualization)
- I/O (pyavs.io)
- Pilot Data (pyavs.pilot)
- Remote Access (pyavs.remote)
- Command Line Interface (pyavs.cli)
AVSComposer (pyavs.preprocessing.composer.AVSComposer, documented in full on
Preprocessing (pyavs.preprocessing)) is the recommended high-level entry point for most analyses; see
AVSComposer Guide for a guided walkthrough. pyavs.MEGETComposer is a
backward-compatibility alias for the same class.
AVSRemote (pyavs.remote.client.AVSRemote, opened via pyavs.open_remote(),
documented in full on Remote Access (pyavs.remote)) loads data on demand from the public AWS release bucket
instead of a local data_path – see Data Access for details.