Various stuff about fMRI/EEG/MEG statistical analysis...
- Most of the code below, plus some other utilities, can be found on my personal GitHub https://github.com/RikHenson, or the CBU GitHub https://github.com/MRC-CBU/riksneurotools
General stats stuff
- Introduction to statistics for neuroimagers - available as Python or Matlab notebooks (R markdown version TBC), e.g, .ipynb, .mlx or .html: https://github.com/RikHenson/CognesticStats
- How to relate Age, Brain and Cognition (eg with structural equation modelling) in R markdown - available as .Rmd or .html https://github.com/RikHenson/AgeBrainCognition
- Power for detecting interactions (moderations) in experimental and field studies in R markdown - available as .Rmd or .html https://github.com/RikHenson/Notebooks
- Comparing a single patient vs a Group (in SPM) PDF
fMRI analysis
- Complete, self-contained, 3-day course on fMRI analysis using open Python packages - available in ipynb, .pdf or .html: https://github.com/RikHenson/PythonNeuroimagingCourse
- WIKI on How to design efficient fMRI experiments
- Matlab function for calculating efficiency of fMRI GLMs (python notebook to TBC): https://github.com/MRC-CBU/riksneurotools/blob/master/GLM/fMRI_GLM_efficiency.m
- Matlab functions for demonstrating multivariate connectivity https://github.com/RikHenson/MultivarCon
ANOVAs/GLM in SPM/Matlab
- PDF on ANOVAs in SPM
- Matlab function for generic GLM: https://github.com/MRC-CBU/riksneurotools/blob/master/GLM/glm.m
- Matlab function for N-way repeated measures ANOVAs: https://github.com/MRC-CBU/riksneurotools/blob/master/GLM/repanova.m
- Matlab script for simulating pooled versus partitioned errors: https://github.com/MRC-CBU/riksneurotools/blob/master/GLM/check_pooled_error.m
- Comprehensive walk-through on M/EEG source reconstruction in SPM12: paper available here: PDF; code and data available here: https://figshare.com/collections/Multimodal_integration_of_M_EEG_and_f_MRI_data_in_SPM12/4367120
- Matlab scripts for demonstration of DCM for fMRI (not well documented): https://github.com/RikHenson/DCMdemo
- Matlab function for N-way mixed ANOVAs in SPM: https://github.com/MRC-CBU/riksneurotools/blob/master/SPM/batch_spm_anova.m
- Extract data for multiple ROIs from multiple datafiles: https://github.com/MRC-CBU/riksneurotools/blob/master/Util/roi_extract.m
- SPM Course Slides from 2008
- Source Localisation of EEG and MEG data in SPM5: Manual and Data (~80MB)
- PDF for single-subject (1st-level) event-related fMRI analysis in SPM Manual and Data
- PDF for group-based (2nd-level) event-related fMRI analysis in SPM Manual and Data
- Reading FIF MEG files into SPM5: click here for more info
- A multi-subject, multi-modal (T1, BOLD, DWI, EEG, MEG) dataset for methods development: A BIDS version is here: OpenNeuro, but if you want the original version used by Wakeman and Henson, you'll need to use an FTP tool to download from "ftp://ftp.mrc-cbu.cam.ac.uk/personal/rik.henson/wakemandg_hensonrn/" (note 170GB!)
- Matlab function for calculating NxN functional connectivity between all pairs of fMRI timeseries for N ROIs: https://github.com/MRC-CBU/riksneurotools/blob/master/Conn/rsfMRI_GLM.m
- Matlab function for detecting artefacts in EEG/MEG data using ICA and temporal correlations with EOG/ECG and/or spatial correlations with standard template topographies: https://github.com/MRC-CBU/riksneurotools/tree/master/MEEG
- Matlab function for computing single-trial fMRI estimates https://github.com/MRC-CBU/riksneurotools/blob/master/GLM/fMRI_multitrial_GLMs.m using LSA or LSS (see Abdulrahman & Henson (2016)).
SPM stuff
Datasets
Miscellaneous
Use at own risk!
MRC Cognition and Brain Sciences Unit

