Skip to content

Tags: embodied-computation-group/gastropy

Tags

v0.1.2

Toggle v0.1.2's commit message
v0.1.2 — solo author, citation updates

v0.1.1

Toggle v0.1.1's commit message
v0.1.1 — multichannel, ICA, preprocessing, BIDS I/O

v0.1.0

Toggle v0.1.0's commit message
Move paper.md, paper.bib, and JOSS_ROADMAP.md into paper/ directory

sample-data-v1

Toggle sample-data-v1's commit message
Add gastric-brain coupling module with PLV, surrogate testing, and fM…

…RI pipeline

Implements the coupling analysis pipeline ported from the StomachBrain-MentalHealth
MATLAB pipeline (Banellis et al. 2025). Two-layer architecture:

Layer 1 (gastropy.coupling): modality-agnostic numpy-only functions
- phase_locking_value / phase_locking_value_complex
- surrogate_plv via circular time-shifting (median rotation method)
- coupling_zscore for empirical vs null comparison
- circular_mean, resultant_length, rayleigh_test

Layer 2 (gastropy.neuro.fmri): fMRIPrep-to-PLV-map convenience functions
- regress_confounds (GLM with motion + aCompCor regressors)
- bold_voxelwise_phases (bandpass + Hilbert at gastric peak frequency)
- compute_plv_map / compute_surrogate_plv_map with 3D volume reconstruction

Also adds fetch_fmri_bold() for downloading sample BOLD data via pooch,
and 54 new tests (178 total, all passing).