Skip to main content
Ctrl+K
GastroPy - Home GastroPy - Home

Getting Started

  • Installation
  • Getting Started

API Reference

  • API Reference
    • gastropy.egg_process
    • gastropy.egg_clean
    • gastropy.egg_process_multichannel
    • gastropy.select_best_channel
    • gastropy.select_peak_frequency
    • gastropy.psd_welch
    • gastropy.design_fir_bandpass
    • gastropy.apply_bandpass
    • gastropy.instantaneous_phase
    • gastropy.cycle_durations
    • gastropy.mean_phase_per_window
    • gastropy.resample_signal
    • gastropy.detect_phase_artifacts
    • gastropy.find_cycle_edges
    • gastropy.hampel_filter
    • gastropy.mad_filter
    • gastropy.remove_movement_artifacts
    • gastropy.ica_denoise
    • gastropy.fit_sine
    • gastropy.sine_model
    • gastropy.band_power
    • gastropy.instability_coefficient
    • gastropy.cycle_stats
    • gastropy.proportion_normogastric
    • gastropy.assess_quality
    • gastropy.GastricBand
    • gastropy.NORMOGASTRIA
    • gastropy.BRADYGASTRIA
    • gastropy.TACHYGASTRIA
    • gastropy.GASTRIC_BANDS
    • gastropy.band_decompose
    • gastropy.multiband_analysis
    • gastropy.morlet_tfr
    • gastropy.phase_locking_value
    • gastropy.phase_locking_value_complex
    • gastropy.surrogate_plv
    • gastropy.coupling_zscore
    • gastropy.circular_mean
    • gastropy.resultant_length
    • gastropy.rayleigh_test
    • gastropy.read_bids_physio
    • gastropy.write_bids_physio
    • gastropy.parse_bids_filename
    • gastropy.brainvision_to_bids
    • gastropy.load_fmri_egg
    • gastropy.load_egg
    • gastropy.list_datasets
    • gastropy.fetch_fmri_bold
    • gastropy.plot_psd
    • gastropy.plot_egg_overview
    • gastropy.plot_cycle_histogram
    • gastropy.plot_artifacts
    • gastropy.plot_volume_phase
    • gastropy.plot_egg_comprehensive
    • gastropy.plot_tfr
    • gastropy.plot_coupling_map
    • gastropy.plot_glass_brain
    • gastropy.neuro.fmri.find_scanner_triggers
    • gastropy.neuro.fmri.create_volume_windows
    • gastropy.neuro.fmri.phase_per_volume
    • gastropy.neuro.fmri.apply_volume_cuts
    • gastropy.neuro.fmri.regress_confounds
    • gastropy.neuro.fmri.bold_voxelwise_phases
    • gastropy.neuro.fmri.compute_plv_map
    • gastropy.neuro.fmri.compute_surrogate_plv_map
    • gastropy.neuro.fmri.load_bold
    • gastropy.neuro.fmri.align_bold_to_egg
    • gastropy.neuro.fmri.to_nifti

Tutorials

  • Tutorials
    • EGG Signal Processing with GastroPy
    • Multi-Channel EGG Analysis: A Complete Pipeline Tutorial
    • Gastric-Brain Coupling with GastroPy
    • Gastric-Brain Coupling with Real fMRI Data

Examples

  • Examples
    • Power Spectral Density
    • EGG Signal Overview
    • Cycle Duration Histogram
    • Artifact Detection and Visualization
    • Per-Volume fMRI Phase
    • Comprehensive EGG Figure
    • Time-Frequency Representation
    • Visualizing Brain Coupling Maps
    • One-Call EGG Pipeline
    • Channel Selection
    • Artifact Removal Strategies
    • Multi-Channel EGG Processing
    • Bandpass Filtering and Phase Extraction
    • Multi-Band Analysis
    • Quality Assessment
    • PSD Parameter Exploration
    • fMRI-EGG Processing Pipeline
    • Phase-Locking Value (PLV)
    • Surrogate PLV Testing
    • Circular Statistics
    • EGG-BOLD Coupling Pipeline

Development

  • Contributing to GastroPy
  • Repository
  • Suggest edit
  • Open issue
  • .rst

Examples

Contents

  • Visualization
  • Processing
  • Coupling

Examples#

Short, focused examples demonstrating individual GastroPy functions and workflows.

Visualization#

  • Power Spectral Density
  • EGG Signal Overview
  • Cycle Duration Histogram
  • Artifact Detection and Visualization
  • Per-Volume fMRI Phase
  • Comprehensive EGG Figure
  • Time-Frequency Representation
  • Visualizing Brain Coupling Maps

Processing#

  • One-Call EGG Pipeline
  • Channel Selection
  • Artifact Removal Strategies
  • Multi-Channel EGG Processing
  • Bandpass Filtering and Phase Extraction
  • Multi-Band Analysis
  • Quality Assessment
  • PSD Parameter Exploration
  • fMRI-EGG Processing Pipeline

Coupling#

  • Phase-Locking Value (PLV)
  • Surrogate PLV Testing
  • Circular Statistics
  • EGG-BOLD Coupling Pipeline

previous

Gastric-Brain Coupling with Real fMRI Data

next

Power Spectral Density

Contents
  • Visualization
  • Processing
  • Coupling

By Micah Allen

© Copyright 2026, Micah Allen.