How yeticheese/thetagammaanalysis-yeticheese works
Theta Gamma Analysis is a Python research toolkit for analyzing hippocampal signals and theta–gamma coupling. Its documented workflow is notebook-led: researchers extract theta signals, detect cycles, inspect frequency–phase plots, and batch-process trials. The source supports a batch coordinator that discovers trial files and dispatches supplied processing functions, signal-processing classes, REM/state and cycle analysis, and HDF5/CSV-oriented dataset helpers. Some notebook and batch internals are unsampled, so the graph shows only documented or source-supported links and omits uncertain wiring.
Main entry points: signal.py Signal processing · utils.py Batch dispatch · process_functions.py Dataset export · Tutorial_4_Batch Analysis.ipynb Batch tutorials
Components 22
Batch workflow
- Batch tutorials
notebooks/Tutorial_4_Batch Analysis.ipynb - File discovery
src/utils.py - Batch dispatch
src/utils.py - HPC and states
- Trial models
src/Trial.py - Dataset builder
notebooks/Dataset_Builder_Notebook.ipynb
Signal analysis
- Signal processing
src/signal.py - EMD analysis
src/signal.py - Band splitting
src/functions.py - State segmentation
src/functions.py - Cycle detection
src/functions.py - Theta tutorial
notebooks/Tutorial_1_Theta_Signal_Extraction.ipynb - Cycle tutorial
notebooks/Tutorial_2_Cycle_Detection.ipynb
Analysis outputs
- Cycle features
src/signal.py - Frequency phase plots
src/functions.py - Dataset building
src/signal.py - Frequency phase tutorial
notebooks/Tutorial_3_Frequency_Phase_Plots.ipynb
Data persistence
- HDF5 helpers
src/utils.py - Dataset export
src/process_functions.py - HDF5 data
- CSV output
Other components
- Researcher
Connections 23
- Researcher → Theta tutorial: uses
- Researcher → Cycle tutorial: uses
- Researcher → Frequency phase tutorial: uses
- Researcher → Batch tutorials: uses
- Researcher → Dataset builder: uses
- Batch tutorials → File discovery: invokes
- Dataset builder → File discovery: invokes
- File discovery → Batch dispatch: passes files
- HPC and states → Batch dispatch: loads
- Batch dispatch → Signal processing: dispatches
- Batch dispatch → State segmentation: dispatches
- Trial models → Signal processing: extends
- Signal processing → EMD analysis: computes
- Signal processing → Band splitting: splits bands
- Signal processing → Cycle detection: detects cycles
- Signal processing → Cycle features: extracts
- Signal processing → Frequency phase plots: bins power
- Signal processing → Dataset building: builds dataset
- Cycle features → Frequency phase plots: provides cycles
- Dataset building → Dataset export: exports data
- Dataset export → CSV output: writes
- Dataset export → HDF5 data: writes
- HDF5 helpers → HDF5 data: reads and writes