Getting Started AUDIO 1st level The Batch Interface
GLM for fMRI data analysis
Lab Exercise 1
March 19, 2015
Medical Image Processing Lab
Medical Image Processing Lab GLM for fMRI data analysis
GLM for fMRI data analysis Lab Exercise 1 March 19, 2015 Medical - - PowerPoint PPT Presentation
AUDIO 1st level Getting Started The Batch Interface GLM for fMRI data analysis Lab Exercise 1 March 19, 2015 Medical Image Processing Lab Medical Image Processing Lab GLM for fMRI data analysis AUDIO 1st level Getting Started The Batch
Getting Started AUDIO 1st level The Batch Interface
Lab Exercise 1
March 19, 2015
Medical Image Processing Lab
Medical Image Processing Lab GLM for fMRI data analysis
Getting Started AUDIO 1st level The Batch Interface
1 Getting Started 2 AUDIO 1st level
Preprocessing Model Specification, Review and Estimation Inference and Results
3 The Batch Interface 2 / 26
Getting Started AUDIO 1st level The Batch Interface
http://miplab.epfl.ch/teaching/micro-513/download/ or from the the direct links below
spm8.zip glm data1.zip
3 / 26
Getting Started AUDIO 1st level The Batch Interface
AUDIO single subject auditory data, 16 blocks, TR=7s, 1st level analysis, SPM8 manual Chapter 28, available at http://www.fil.ion.ucl.ac.uk/spm/data/auditory/
4 / 26
Getting Started AUDIO 1st level The Batch Interface
DICOM (Digital Imaging and Communications in Medicine)
ANALYZE
NIfTI (Neuroimaging Informatics Technology Initiative)
5 / 26
Getting Started AUDIO 1st level The Batch Interface
start it
% add SPM8 path to Matlab path v a r i a b l e addpath ( genpath ( ' /tmp/spm8 ' ) ) ; % s t a r t SPM8 g r a p h i c a l u s e r i n t e r f a c e spm
after adding path
% s t a r t d i r e c t l y i n fMRI mode spm( ' fMRI ' ) ;
6 / 26
Getting Started AUDIO 1st level The Batch Interface
functions
bar, selections, etc.
Figure : SPM8 “Menu” (top-left), “Interactive” (bottom-left) and “Graphics” (right) window.
7 / 26
Getting Started AUDIO 1st level The Batch Interface
Figure : SPM select dialog.
8 / 26
Getting Started AUDIO 1st level The Batch Interface
AUDIO see SPM8 manual, chapter 28, for detailed tutorial using this data set
/tmp/GLMLAB/AUDIO
the structural image (i.e. sM00223) and one folder for the functional volumes (i.e. fM00223).
command line
% check the image r e g i s t r a t i o n q u a l i t y s p m c h e c k r e g i s t r a t i o n
and the structural
Figure : Functional and structural images before co-registration.
9 / 26
Getting Started AUDIO 1st level The Batch Interface Preprocessing
SPM functions modify the data in different ways
Prefixes r* re-sliced and usually also realigned mean* mean image c1* gray matter c2* white matter c3* cerebro-spinal fluid m* bias-field corrected structural image w* warped (non-linearly transformed) image, e.g. into MNI s* spatially smoothed image Suffixes * seg sn.mat non-linear forward transformation from subject to MNI space * seg inv sn.mat non-linear reverse transformation from MNI to subject space
10 / 26
Getting Started AUDIO 1st level The Batch Interface Preprocessing
Preprocessing Step Inputs Outputs Realign (Estimate & Reslice) Coregister (Estimate) Segmentation Normalise (Write) Smooth fM00223 *.{img,hdr} meanfM00223 004.{img,hdr} sM00223.{img,hdr} sM00223 004.{img,hdr} sM00223 seg sn.mat rfM00223 *.{img,hdr} wrfM00223 *.{img,hdr} rfM00223 *.{img,hdr} meanfM00223 004.{img,hdr} sM00223 002.hdr c{1,2,3}sM00223 002.{img,hdr} sM00223 002 seg sn.mat sM00223 002 seg inv sn.mat msM00223 002.{img,hdr} wmsM00223 002.{img,hdr} wrfM00223 *.{img,hdr} swrfM00223 *.{img,hdr}
11 / 26
Getting Started AUDIO 1st level The Batch Interface Preprocessing
Realignment
Co-registration
Normalize
12 / 26
Getting Started AUDIO 1st level The Batch Interface Preprocessing
13 / 26
Getting Started AUDIO 1st level The Batch Interface Preprocessing
Perform realignment of the volumes of the time series to the mean image.
Realign pull-down menu
highlight the newly created Session option.
selector to choose all of your functional images fM000*.img. There should be 96 files
created
Figure : Rigid body realignment parameters.
14 / 26
Getting Started AUDIO 1st level The Batch Interface Preprocessing
Co-register the structural to the mean functional image.
Coregister pulldown menu.
the mean fMRI scan from realignment meanfM00223 004.img.
structural image sM00223 002.img.
and save the job as coreg.m.
Figure : Image coregistration result.
15 / 26
Getting Started AUDIO 1st level The Batch Interface Preprocessing
Create tissue probability maps of gray matter (GM), white matter (WM) and cerebro-spinal fluid (CSF), and obtain normalization parameters to warp image into MNI space.
subjects registered anatomical image sM00223 002.img.
Native Space .
▶ button.
c1sM00223 002.img (GM), c2sM00223 002.img (WM), c3sM00223 002.img (CSF), and msM00223 002.img (bias-field corrected T1).
Figure : Segmentation result.
16 / 26
Getting Started AUDIO 1st level The Batch Interface Preprocessing
Normalize volumes of time series into MNI space and re-slice to 3mm isotropic voxel size.
Normalise pull-down menu.
sM00223 0020 seg sn.mat.
the realigned functional images rfM000*.img and the structural image sM00223 0020.nii.
Voxel sizes from [2 2 2] to [3 3 3].
the ▶ button.
Figure : wmsM00223 0020.img (top) and single subject T1 template /spm8/canonical/single subj T1.nii
17 / 26
Getting Started AUDIO 1st level The Batch Interface Preprocessing
Apply spatial smoothing with isotropic Gaussian filter with 6mm FWHM.
spatially normalised files created in the last section i.e. ^wrf.*
6]. This will smooth the data by 6mm in each direction.
button.
Figure : wrfM00223 004.img (top) and swrfM00223 004.img (bottom)
18 / 26
Getting Started AUDIO 1st level The Batch Interface Model Specification, Review and Estimation
To avoid T1 effects in the initial scans of an fMRI time series we discarding the first cycle (12 scans, 04-15), leaving 84 scans, image files 16-99.
normalised func- tional images ie. swrfM00223 {016..099}.img. (use ^s.*).
High-light Onsets and enter “6:12:84”. Highlight Durations and enter “6”.
19 / 26
Getting Started AUDIO 1st level The Batch Interface Model Specification, Review and Estimation
Y = Xβ + ε (1) Y: observed signal, X: regressors, β: parameter estimates, ε: zero-mean Gaussian noise
Figure : Design matrix. Figure : Orthogonality. Figure : Explore session 1.
20 / 26
Getting Started AUDIO 1st level The Batch Interface Model Specification, Review and Estimation
the classical subdirectory.
file.
21 / 26
Getting Started AUDIO 1st level The Batch Interface Inference and Results
section.
effects for the active condition (i.e., a
(active > rest) and “-1” (rest > active).
Figure : Contrast prompt.
22 / 26
Getting Started AUDIO 1st level The Batch Interface Inference and Results
menu.
Figure : Statistical parametric map of AUDIO single subject activation (p<0.05, FWE).
23 / 26
Getting Started AUDIO 1st level The Batch Interface
Batch interface allows to define processing pipelines linked by dependencies.
segment.m (in this order).
then Reference Image .
Realign: Estimate & Reslice: Mean Image , and then OK.
press Dependency , highlight Coregister: Estimate: Coregistered Images and Press OK .
Figure : Batch editor including the first three steps of the preprocessing pipeline.
24 / 26
Getting Started AUDIO 1st level The Batch Interface
View of the various processing steps as a single box with only few in- and outputs.
Preprocessing Step Inputs Outputs Preprocessing fM00223 *.{img,hdr} sM00223 004.{img,hdr} swrfM00223 *.{img,hdr}
25 / 26
Getting Started AUDIO 1st level The Batch Interface
brain images. Academic Press. Acknowledgements Thanks to Ahmed Abdulkadir and Jonas Richiardi for helping in putting together this lab exercise.
26 / 26