37
SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Embed Size (px)

Citation preview

Page 1: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

SPM5 Tutorial Part 2

Tiffany Elliott

May 10, 2007

Page 2: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

•To begin setting up your model click on the Specify 1st-level button

Page 3: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Double click fMRI model specification to expand the node.

Page 4: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Click Directory and Specify Files…

Page 5: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Select your stats folder.

Page 6: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Double click the Timing parameters node to expand it.

Page 7: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Enter Timing Parameters

• Units for design scans (the units we will use to report our onsets)

• Interscan interval 2 (this is the TR)

• Microtime resolution 16, default

• Microtime onset 1

Page 8: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Data & Design

Make 3 New “Subject/Session” nodes for each of our 3 VOD runs.

Page 9: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Double click on the first Subject/Session node to expand it and click on the Scans node below it. Now click specify files to select your data files.

Page 10: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Select your data for the first session

Page 11: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Click on the Multiple conditions node.

We will now load previously defined task condition mat files.

These will be for our 4 task conditions: frequents, targets, alcoholic beverage novels and non-alcoholic beverage novels.

Page 12: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Each of the previously defined mat files contains information for the conditions for that session.

There are three defined variables contained within…

names – a cell array of the names of the conditions

Onsets – a cell array of the event onsets (in scan units)

Page 13: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Click High-pass filter and then Specify Text. Enter 128 for your high pass filter cutoff.

A high pass filter removes low frequency confounds from your data. I use this trick to remember the definition… “higher frequencies pass the test of a high pass filter”

We will set ours to a wavelength of 128 seconds.

Page 14: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Repeat scan, condition and high pass filter selection for the other two sessions…

Page 15: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Factorial Design

Do nothing for this node.

Page 16: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Basis Functions

Choose Canonical HRF and Model Time Derivatives

•Basis functions are functions that you want to base your model on

•The model will be a linear combination of your basis functions

•Modeling the time derivatives allows for variations in subject-to-subject and voxel-to-voxel responses

Page 17: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Hemodynamic Response Function

Page 18: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Stimulus Onset Convolved with HRF

Page 19: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Model Interactions (Volterra)

Do not model interactions

Page 20: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Global Normalisation

Always select “None” for this

Here’s why…

•It removes signal that covaries with the global mean•In fMRI large activations bias the global mean calculation• Thus removing the global mean will also remove those activations

Note: this isn’t a problem in PET scanning

Page 21: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Explicit mask

Leave this as <None>

This would be useful if you want to apply a mask to your results. For example one might pick the standard brain mask to mask out things outside of the brain.

Page 22: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Serial Correlations

Select AR(1)

•fMRI produces a lot of low-frequency noise•This noise is highly correlated from one timepoint to the next•This node will perform corrections to account for this

Page 23: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

When you have your model set

• Save in the parameters like you did during the preprocessing tutorial by clicking on the save button and saving in a file type of your choice

• Run the analysis by clicking Run

Page 24: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

To Review your design matrix click design, select your SPM.mat and select Design Matrix from the dropdown menu.

Page 25: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Your design will be displayed in the graphics window.

Each of the 3 blocks to the right represent the model for that session

Page 26: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Now select Design orthogonality.

Page 27: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

•Your design orthogonality is plotted in the table below your design matrix.

•Each little shaded square is representative of the collinearity between two columns of your design matrix.

•The darker the square the more the two conditions correlate with each other and the less orthogonal they are.

•When modeling fMRI you don’t want your separate conditions to be collinear. You want them to be more orthogonal (i.e. linearly independent).

Page 28: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Now we will estimate our model

Click Estimate and select your SPM.mat

Page 29: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Double click the Model estimation node to expand it.

Select the SPM.mat file you created from the previous step. It will be in the folder you chose to run your stats in.

We will leave the Method setting at “Classical”

Then click Run.

Now you will have images in your stats folder associated with your model.

Page 30: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Images you will see in your stats folder after estimation…

• beta_000k.img – estimated regression coefficient where k indexes the kth regression coefficient

• mask.img – binary images that indicates which voxels were used in the analysis

• ResMS.img – variance of the error

• RPV.img – the estimated resels per voxel (a resel is a resolution element)

Page 31: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Now click the Results button to view your results and select your SPM.mat file in your stats folder.

Page 32: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

You will see a window pop up that will allow us to specify contrasts to look at.

Contrasts are simply comparisons of your regression coefficients (beta images).

We will specify a new contrast to look at the difference between the alcoholic and non-alcoholic novel conditions.

Page 33: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Enter this in the contrast vector box. And hit OK when you are done.

0 0 0 0 1 0 -1 0 0 0 0 0 1 0 -1 0 0 0 0 0 1 0 -1 0

Each 1 corresponds with the novac condition from each session and each –1 corresponds with the novnc condition from each session.

Here we will define the novac-novnc contrast.

Page 34: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Now we are ready to look at the contrast.

Highlight it and click Done.

Page 35: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Mask with other contrasts? NoTitle for comparison: novac-novnc P Value adjustment to control: NoneThreshold {T or p value}: 0.05

Page 36: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Enter these values for the prompts that follow…

• Mask with other contrasts? No

• ROI Analysis? No

• Title for comparison: novac-novnc

• P value adjustment to control: none

• Threshold {T or p value}: 0.05

• Extent threshold {voxels}: 0

Page 37: SPM5 Tutorial Part 2 Tiffany Elliott May 10, 2007

Say hello to your SPM results.

You can move the little red cursor around by drag and drop.

If you right click on the brain you can select from some shortcut options that include jumping to the global maxima.

The voxel you are on is displayed in coordinates to the left (see the red circle in the picture).

Can you find the voxel coordinates for the global maxima in the results?