How gin-ieeg/bidsforge works
bidsforge is a BIDS-based iEEG analysis toolkit. The principal workflow discovers and groups BIDS files, configures a processor and writer, runs signal or trial-statistics analyses, and writes derivatives with provenance. Its documented branches include Hilbert envelopes, time-frequency maps, subject-level condition tests and regressions, and their group-level ROI analyses. A separate visualization application supports trial-statistics exploration. Some pipeline modules were not sampled; their presence and roles are documented in the README, so those links are documentation-backed rather than claims of inspected implementation.
Main entry points: base.py Run and write · trial_stats/processor.py Subject trial stats · window.py Analysis window · trial_stats_group/processor.py Group statistics
Components 25
BIDS inputs
- BIDS dataset
bidsforge/bids/dataset.py - BIDS files
bidsforge/bids/file.py - File grouping
bidsforge/bids/file_group.py - Entity matching
bidsforge/bids/matching.py - Data loading
bidsforge/data/loader.py
Processing framework
- Run and write
bidsforge/processing/base.py - Hilbert envelopes
bidsforge/processing/hilbert/dsp.py - Time-frequency maps
bidsforge/processing/time_frequency/dsp.py - HDF5 support
bidsforge/processing/utils/hdf5.py - MATLAB support
bidsforge/processing/utils/matlab.py
Subject analyses
- Subject trial stats
bidsforge/processing/trial_stats/processor.py - Subject parameters
bidsforge/processing/trial_stats/params.py - Subject results
bidsforge/processing/trial_stats/result.py - TF trial stats
bidsforge/processing/time_frequency_stats/processor.py - Trial resolution
bidsforge/processing/utils/trial_resolver.py - Condition rules
bidsforge/processing/utils/condition_rules.py - Event handling
bidsforge/processing/utils/events.py
Group analyses
- Group statistics
bidsforge/processing/trial_stats_group/processor.py - Group results
bidsforge/processing/trial_stats_group/result.py
Visualization
- Stats application
bidsforge/visualization/trial_stats/app.py - Analysis window
bidsforge/visualization/trial_stats/window.py - Background workers
bidsforge/visualization/trial_stats/worker.py - Subject plots
bidsforge/visualization/trial_stats/panels/plot_panel.py - Group plots
bidsforge/visualization/trial_stats/panels/group_plot_panel.py
Other components
- Analyst
Connections 24
- Analyst → BIDS dataset: provides data
README.md - BIDS dataset → BIDS files: discovers files
bidsforge/bids/dataset.py - BIDS dataset → File grouping: builds groups
bidsforge/bids/file_group.py - BIDS files → Data loading: loads data
bidsforge/bids/file.py - Analyst → Run and write: configures run
README.md - Run and write → Hilbert envelopes: runs processor
- Run and write → Time-frequency maps: runs processor
- Run and write → Subject trial stats: runs processor
bidsforge/processing/trial_stats/processor.py - Run and write → Group statistics: runs processor
- Run and write → File grouping: processes groups
bidsforge/processing/base.py - Run and write → HDF5 support: writes derivatives
- Subject trial stats → Trial resolution: resolves trials
bidsforge/processing/trial_stats/processor.py - Subject trial stats → Event handling: uses events
bidsforge/processing/trial_stats/processor.py - Trial resolution → Condition rules: applies rules
bidsforge/processing/utils/trial_resolver.py - Subject trial stats → Subject results: produces results
bidsforge/processing/trial_stats/processor.py - TF trial stats → Trial resolution: resolves trials
bidsforge/processing/time_frequency_stats/processor.py - Group statistics → Group results: produces results
- Analyst → Stats application: opens analysis
README.md - Stats application → Analysis window: launches window
bidsforge/visualization/trial_stats/app.py - Analysis window → Background workers: starts workers
bidsforge/visualization/trial_stats/window.py - Analysis window → Subject plots: renders results
bidsforge/visualization/trial_stats/window.py - Analysis window → Group plots: renders group results
bidsforge/visualization/trial_stats/window.py - Subject results → Group statistics: aggregates subjects
- Group statistics → Entity matching: matches inputs