A comprehensive Python-based tool for analyzing functional connectivity in the brain using fMRI time-series data. This project enables spectral analysis, ROI extraction, and connectivity matrix generation to assess how brain areas communicate during rest or task-based activity.
- ROI Signal Extraction: Extract time-series signals from different brain regions
- Spectral Analysis: Compute frequency-domain synchronization metrics
- Connectivity Metrics:
- Coherence analysis
- Phase-locking value (PLV)
- Cross-correlation
- Mutual information
- Visualization: Interactive connectivity matrices and network graphs
- Statistical Analysis: Significance testing and thresholding
- Data Export: Save results in various formats (CSV, JSON, PNG)
- Clone the repository:
git clone <repository-url>
cd functional-connectivity-analyzer- Install dependencies:
pip install -r requirements.txtRun the demo with synthetic data to see the tool in action:
python demo.pyThis will:
- Generate synthetic fMRI data
- Compute multiple connectivity metrics
- Create visualizations
- Save results to
demo_results/directory
For detailed instructions on how to use the tool with your own fMRI data, please refer to the comprehensive USAGE_GUIDE.txt file.
# Basic usage example
python examples/basic_usage.py
# Advanced analysis example
python examples/advanced_analysis.pynilearn, nibabel, scipy, numpy, matplotlib, plotly, networkx, scikit-learn, pandas, mne
MIT License