Buttons in SPM5 Seán O’Sullivan, ION Alice Jones, Dept of Psychology Alice Jones, Dept of Psychology Methods for Dummies 16 th Jan 2008.

Slides:



Advertisements
Similar presentations
SPM – introduction & orientation introduction to the SPM software and resources introduction to the SPM software and resources.
Advertisements

Overview of SPM p <0.05 Statistical parametric map (SPM)
The General Linear Model Christophe Phillips Cyclotron Research Centre University of Liège, Belgium SPM Short Course London, May 2011.
VBM Voxel-based morphometry
Camilla Clark, Catherine Slattery
2nd level analysis – design matrix, contrasts and inference
General Linear Model L ύ cia Garrido and Marieke Schölvinck ICN.
General Linear Model Beatriz Calvo Davina Bristow.
2nd level analysis – design matrix, contrasts and inference
1st level analysis - Design matrix, contrasts & inference
Buttons in SPM5 Carolyn McGettigan & Alice Grogan Methods for Dummies 5 th April 2006.
Realignment – Motion Correction (gif from FMRIB at Oxford)
Concepts of SPM data analysis Marieke Schölvinck.
SPM Software & Resources Wellcome Trust Centre for Neuroimaging University College London SPM Course London, May 2011.
SPM Software & Resources Wellcome Trust Centre for Neuroimaging University College London SPM Course London, October 2008.
Introduction to Operation of the XL-30 Scanning Electron Microscope Tutorial # 1 Overview of XL-30 Microscope Control Program.
1st level analysis: basis functions, parametric modulation and correlated regressors. 1 st of February 2012 Sylvia Kreutzer Max-Philipp Stenner Methods.
Gordon Wright & Marie de Guzman 15 December 2010 Co-registration & Spatial Normalisation.
Outline What is ‘1st level analysis’? The Design matrix
Unwarping Irma Kurniawan MFD Realignment (within-modality) Realign + Unwarping (EPI with fieldmaps) 2. Between-modality Coregistration Coreg.
Introduction to Functional and Anatomical Brain MRI Research Dr. Henk Cremers Dr. Sarah Keedy 1.
OverviewOverview Motion correction Smoothing kernel Spatial normalisation Standard template fMRI time-series Statistical Parametric Map General Linear.
SPM5 Tutorial, Part 1 fMRI preprocessing Tiffany Elliott May
Coregistration and Normalisation By Lieke de Boer & Julie Guerin.
JOAQUÍN NAVAJAS SARAH BUCK 2014 fMRI data pre-processing Methods for Dummies Realigning and unwarping.
07/01/15 MfD 2014 Xin You Tai & Misun Kim
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
Co-registration and Spatial Normalisation
2nd Level Analysis Jennifer Marchant & Tessa Dekker
Introduction to SPM Batching
ROI analyses using FSL March 27, 2013.
2nd level analysis – design matrix, contrasts and inference
Overview for Dummies Outline Getting started with an experiment Getting started with an experiment Things you need to know for scanning Things you need.
Manual for Stones Synthesis. Before running the program : The OpenGL must be installed Input models is VRML 2.0 format Output model is VRML 2.0 & IRIT.
SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007.
1 Hands-On Data Analysis Kate Pirog Revill and Chris Rorden Data from safety training –9 subjects –Finger-tapping task (12s tapping, 12s rest) –188 scans.
Coregistration and Spatial Normalisation
FMRI ROI Analysis 7/18/2014 Friday Yingying Wang
Methods for Dummies Overview and Introduction
NA-MIC National Alliance for Medical Image Computing fMRI Data Analysis in Slicer (short dataset tutorial) Steve Pieper Haiying Liu Wendy.
FEAT (fMRI Expert Analysis Tool)
SPM Pre-Processing Oli Gearing + Jack Kelly Methods for Dummies
Methods for Dummies Second level Analysis (for fMRI) Chris Hardy, Alex Fellows Expert: Guillaume Flandin.
The General Linear Model
1 st level analysis: Design matrix, contrasts, and inference Stephane De Brito & Fiona McNabe.
The general linear model and Statistical Parametric Mapping I: Introduction to the GLM Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B.
Variance components Wellcome Dept. of Imaging Neuroscience Institute of Neurology, UCL, London Stefan Kiebel.
SPM and (e)fMRI Christopher Benjamin. SPM Today: basics from eFMRI perspective. 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference:
The general linear model and Statistical Parametric Mapping II: GLM for fMRI Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B Poline.
MfD Co-registration and Normalisation in SPM
1 Berger Jean-Baptiste
Aa Scripting SPM analyses using aa Rhodri Cusack.
Methods for Dummies M/EEG Analysis: Contrasts, Inferences and Source Localisation Diana Omigie Stjepana Kovac.
Group Analyses Guillaume Flandin SPM Course London, October 2016
The general linear model and Statistical Parametric Mapping
The General Linear Model
2nd Level Analysis Methods for Dummies 2010/11 - 2nd Feb 2011
Wellcome Trust Centre for Neuroimaging University College London
and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B Poline
Keith Worsley Keith Worsley
Computational Neuroanatomy for Dummies
From buttons to code Eamonn Walsh & Domenica Bueti
Statistical Parametric Mapping
The general linear model and Statistical Parametric Mapping
SPM2: Modelling and Inference
Bayesian Inference in SPM2
Wellcome Centre for Neuroimaging, UCL, UK.
Mixture Models with Adaptive Spatial Priors
WellcomeTrust Centre for Neuroimaging University College London
The General Linear Model
Presentation transcript:

Buttons in SPM5 Seán O’Sullivan, ION Alice Jones, Dept of Psychology Alice Jones, Dept of Psychology Methods for Dummies 16 th Jan 2008

SPM5 – WTF? Ladles and jellyspoons, I come before you to stand behind you and tell you something I know nothing about. Next Thursday, the day after Friday, there will be a ladies' meeting for men only. Wear your best clothes, if you haven't any, and if you can come, please stay home. Admission is free, you can pay at the door. We'll give you a seat, so you can sit on the floor. It makes no difference where you sit, the kid in the gallery is sure to spit. Ladles and jellyspoons, I come before you to stand behind you and tell you something I know nothing about. Next Thursday, the day after Friday, there will be a ladies' meeting for men only. Wear your best clothes, if you haven't any, and if you can come, please stay home. Admission is free, you can pay at the door. We'll give you a seat, so you can sit on the floor. It makes no difference where you sit, the kid in the gallery is sure to spit.

 Introducing the SPM5 User Interface  Spatial Pre-processing in fMRI  Model design  1 st and 2 nd Level Analysis  Help in SPM5 Topics

SPM5 User Interface

Preprocessing Analysis Inference

SPM5 User Interface

Current List of Jobs SPM5 User Interface

Current List of Jobs Options available for currently highlighted object Current value of / information about highlighted object Save/Load as.mat files or XML (“load-xml”, “savexml”) Info about the meaning of current item SPM5 User Interface

1. Realignment 2. Coregistration 3. Segmentation 4. Normalize 5. Smoothing Spatial Pre-processing

 Data are available from   Create a new directory for data  Create a subdirectory “jobs”  Open MATLAB  Get into the correct working directory  Type “SPM fmri”  If you’re using SPM for the first time, make sure you “Set Path”, under File in MATLAB. Enter the path to your SPM folder and select the “Add with Subfolders” option Analysing with SPM5

 Click on “Realign” from drop-down menu Realignment

 Select “New Realign:Estimate and Reslice” Realignment  Open “Realign:Estimate and Reslice” option  Highlight Data and select “New Sesson”  Highlight “Session”  Select “Specify Files”

Realignment  Choose all of the functional images in the directory  i.e. images beginning ‘fM000*.img’

Realignment  Save job file as e.g. “realign.mat” in your jobs directory  Press “RUN”

Realignment etc Mean image for use in coregistration Header files modified with orientation info

Coregistration  Click on “Coregister”

Coregistration  Click on “New Coreg:Estimate”  Double-click on “Coreg:Estimate”  Highlight “Reference Image”  select mean fMRI scan meanfM00223_004.img from realignment  Highlight “Source Image”  select structural image sM00223_002.img  SAVE as ‘coreg.mat’  Press “RUN”

 Effects:  SPM implements a coregistration between structural and functional data that maximises mutual information  SPM changes header of source file i.e. sM00223_002.hdr Coregistration

 Useful to check registration of ref and source images at this point  Click “Check Reg” button  Select your source and ref images as before  Navigate images and inspect anatomical correspondence Coregistration

Segmentation  Click on “Segment”

Segmentation  Highlight Data field  “Specify Files”  select the subject’s registered structural image sM00223_002.img  SAVE as segment.mat  RUN

 Effects:  SPM creates grey and white matter images and a bias-field corrected structural image  View with Check Reg  Grey matter image is c1sM00223_002.img  White matter image is c2sM00223_002.img  Check reg against original structural sM00223_002.img Segmentation  SPM also writes spatial normalisation and inverse spatial normalisation parameters to files in structural directory:  sM00223_002_seg_sn.mat  sM00223_002_seg_inv_sn.mat  THESE CAN BE USED TO NORMALISE FUNCTIONAL DATA Grey matter image Original structural image

 Click on “Normalize” Normalize

 Select “Normalise:Write”  Allows previously determined warps to be applied to a series of images Normalize  Highlight “Data”  Select new “Subject”  Open “Subject” and highlight “Parameter File”  Select sM00223_002_seg_sn.mat from Segmentation step  Highlight “Images to Write”  “Specify Files”  Use filter to select all realigned functional images  Type ^r.* in SPM file selector and click “Filt”  Right-click  “Select all”  Done

 Open “Writing Options”  Click “Voxel sizes”, then “Specifiy Values”  Change values to [3 3 3]  This writes images at a resolution closer to that at which they were acquired Normalize  SAVE as “normalise.mat  RUN

 Effects:  SPM writes spatially normalised files to the functional data directory  Normalised files have the prefix “w” Normalize

Smooth  Click on “Smooth”

 Open “Smooth” Smooth  Select “Images to Smooth”  select the spatially normalised files “wrfM00*.img”  Highlight “FWHM”  “Specify Values”  Change [8 8 8] to [6 6 6]  Data will be smoothed by 6mm in each direction  SAVE as smooth.mat  RUN

 Effects  See right  Normalised functional image above wrfM00223_004.img  Smoothed image below swrf00223_004.img  Note:  SPM5 Manual says “smoothing step is unnecessary if you are only interested in Bayesian analysis of your functional data” Smooth

 fM00223_004.img  Realign  rfM00223_004.img  Coregister  Segment  Normalise  wrfM00223_004.img  Smooth  swrfM00223_004.img Overview

First Level Analysis 3 STAGES 3 STAGES 1. Specification of GLM design matrix, fMRI data files and filtering. 2. Estimation of GLM parameters 3. Interrogation of results using contrast vectors to product Statistical Parametric Maps or Posterior Probability Maps.

Starting 1 st level analyses Model specification, review and estimation box Model specification, review and estimation box Specify 1 st -level Specify 1 st -level

Building a Design Matrix fMRI Model Specification fMRI Model Specification Directory Directory specify files (ie. where you want the.mat file to be written) specify files (ie. where you want the.mat file to be written) Timing Parameters Timing Parameters Unit for design  scans or seconds Unit for design  scans or seconds Interscan Interval  TR (ie. time taken between acquisitions) Interscan Interval  TR (ie. time taken between acquisitions) Data & Design Data & Design Subject/Session Subject/Session Scans  load sw. files Scans  load sw. files Conditions Conditions

Data & Design Subject/Session Subject/Session Load sw. files Add number of conditions required Name of condition Time of onsets (remember scan/seconds) Duration (remember scan/seconds) Also here: Regressors Covariates Masks etc

Output

Estimation Model parameters can be estimated using classical (Restricted Maximum Likelihood) or Bayesian algorithms Model parameters can be estimated using classical (Restricted Maximum Likelihood) or Bayesian algorithms Select Estimate from the panel on the right and select SPM.mat file you have just created.

Results Define contrasts

Second Level Analyses Second level analyses allow you to make populations inferences from your data. As in first level, you will; Configure design matrix Describe General Linear Model Specify data to be used (.con images) Include other parameters relevant to your study (covariates, global normalisation options, grand mean scaling options, masking and thresholds etc) As for first-level: design and data configuration is followed by ‘ESTIMATE’ and building contrast maps in ‘RESULTS’

HELP! In SPM5 There are a few ways to access help in SPM5 There are a few ways to access help in SPM5 The Help button on the GUI This brings up a helpful display where clicking on a button brings up information about that function.

Help can also be obtained from clicking the ? button Help can also be obtained from clicking the ? button HELP! In SPM5

Many options automatically provide a brief explanation of what they might be used for or when to select them Many options automatically provide a brief explanation of what they might be used for or when to select them HELP! In SPM5

Sources of plagiarism Alice Grogan, Carolyn McGettigan Buttons in SPM5 Alice Grogan, Carolyn McGettigan Buttons in SPM5Buttons in SPM5Buttons in SPM5 SPM5 Manual - The FIL Methods Group