Intro Slide

28
me Course User Interface for mrVis Quick Guidebook/presentation-thin Face Animal Car Novel -0.5 0 0.5 1 1.5 2 Condition Mean Amplitude, % Signal * * * -10 0 10 20 30 -1 0 1 2 Trial time, secs % Signal Face Animal Car Novel by Rory Sayres, last updated 5.9.2005 Intro Slide

description

Intro Slide. 2. 2. *. Face. Animal. 1.5. Car. *. 1. Novel. 1. *. Mean Amplitude, % Signal. % Signal. 0.5. 0. 0. -0.5. -1. Face. Animal. Car. Novel. -10. 0. 10. 20. 30. Condition. Trial time, secs. Time Course User Interface for mrVista: - PowerPoint PPT Presentation

Transcript of Intro Slide

Page 1: Intro Slide

Time Course User Interface for mrVista:A Quick Guidebook/presentation-thingy

Face Animal Car Novel-0.5

0

0.5

1

1.5

2

Condition

Me

an

Am

plit

ud

e,

% S

ign

al

*

* *

-10 0 10 20 30-1

0

1

2

Trial time, secs%

Sig

na

l

FaceAnimalCarNovel

by Rory Sayres, last updated 5.9.2005Intro Slide

Page 2: Intro Slide

What’s It For?

The Interface is used to easily view and perform basic analyses on time courses across many scans for a given ROI. It can be used on cyclic (conditions cycle through—e.g., ABAB, traveling-wave) or event-related (including block experiments where the block order is not cyclic) data.

What Do You Need?

A stim/parfiles directory within your mrVista session directory.

If you’re using event-related data, you’ll need .par files in this directory specifying the onset times of different types of trials for each scan. The format is this: ASCII text file w/ two columns; first column is onset time in seconds of a trial, second column is an integer specifying the condition number of that trial. Use 0 to denote null or baseline-condition trials. An optional third column can be used to specify a text label for each condition. Only the label for the first trial for each condition is used.

For cyclic data, the .par files can be generated automatically when the TCUI is invoked.

What’s The TCUI For?

Page 3: Intro Slide

Plotting Options:1) Whole Time Course: show the time series for the selected ROI from all selected scans, indicating the start of different trials.

2) Mean Time Course: Plot the Mean time course +/- SEMs for each selected condition in the same axes.

3) Mean Time Course Subplots: Plot the mean +/- SEMs for each selected condition in a separate subplot.

4) All Trials: For each condition, plot the peri-stimulus time course from all trials in a separate subplot.

5) Relative Amplitudes: Plot the “dot-product” relative fMRI amplitude for each condition (described below).

6) Mean Amplitudes: Plot the mean difference between BOLD signal between designated “peak” and “baseline” periods (described below).

7) Mean Time Course Plus Amplitudes: Plot the mean amplitudes (option 5) and mean time courses (option 3) together. The default option.

8) FFT of mean tSeries: Perform a Fast Fourier Transform analysis on the mean time series across scans, and plot the results, labeling the frequency at which most events occur in the scans.

9) GLM: Apply a general linear model to the time series and illustrate the results.

Plotting Options

Page 4: Intro Slide

1) Whole Time Course: show the time series for the selected ROI from all selected scans, indicating the start of different trials.

The black periods are baseline periods (condition 0), the other colors reflect the extend of different trial types. The detrended time series is shown in white, in units of % signal change (from either the mean of the raw time series [default] or the mean during the null condition—see Settings).

20 40 60 80 100 120 140 160 180 200-1.5

-1

-0.5

0

0.5

1

1.5

2

Time, secs

% S

igna

l

FaceAnimalCarNovel

Plot Whole Timecourse (1)

Page 5: Intro Slide

1) Whole Time Course: show the time series for the selected ROI from all selected scans, indicating the start of different trials.

If the length of the whole time series is more than 200 seconds, a slider appears allowing you to navigate through the scan at a reasonable zoom. The “WholeTC” button allows you to zoom out and see the whole time course at once. You can also select View | Figure Toolbar, and select the zoom icon, to zoom arbitrarily.

Plot Whole Timecourse (2)

Page 6: Intro Slide

2) Mean Time Course: Plot the Mean time course +/- SEMs for each selected condition in the same axes.

-10 -5 0 5 10 15 20 25-1

-0.5

0

0.5

1

1.5

2

Trial time, secs

% S

ign

al

FaceAnimalCarNovel

Plot Mean Timecourse

Page 7: Intro Slide

3) Mean Time Course Subplots: Plot the mean +/- SEMs for each selected condition in a separate subplot.

-5 0 5 10 15 20

-0.50

0.51

1.5

Face

% S

ign

al *

-5 0 5 10 15 20

-0.50

0.51

1.5

Animal

Trial time, secs

% S

ign

al *

-5 0 5 10 15 20

-0.50

0.51

1.5

Car

*

-5 0 5 10 15 20

-0.50

0.51

1.5

Novel

Trial time, secs

This may be more useful if there are many conditions or the amplitude of response is similar for some conditions.

Plot Mean Tc Subplots

Page 8: Intro Slide

4) All Trials: For each condition, plot the peri-stimulus time course from all trials in a separate subplot.

-5 0 5 10 15 20

-1

0

1

2

Face

% S

igna

l *

-5 0 5 10 15 20

-1

0

1

2

Animal

Trial time, secs

% S

igna

l *

-5 0 5 10 15 20

-1

0

1

2

Car

*

-5 0 5 10 15 20

-1

0

1

2

Novel

Trial time, secs

Each trace is a separate trial, relative to the trial onset. If the “Show legend” setting is off, the traces are color coded by condition type…

Plot All Trials (1)

Page 9: Intro Slide

4) All Trials: For each condition, plot the peri-stimulus time course from all trials in a separate subplot.

…if the legend is on, the traces are color-coded by the occurrence of each trial in the whole time series (more blue==occurred earlier, more green==occurred later).

-5 0 5 10 15 20

-1

0

1

2

Face

% S

ign

al *

-5 0 5 10 15 20

-1

0

1

2

Animal

Trial time, secs

% S

ign

al *

-5 0 5 10 15 20

-1

0

1

2

Car

*

-5 0 5 10 15 20

-1

0

1

2

Novel

Trial time, secs

1234

Trial #

Plot All Trials (2)

Page 10: Intro Slide

5) Relative Amplitudes: Plot the “dot-product” relative fMRI amplitude for each condition (described below).

Face Animal Car Novel-0.2

0

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

Re

lativ

e a

mp

litu

de

FaceAnimalCarNovel

Plot Relative Amplitudes

Page 11: Intro Slide

What are relative amplitudes and how are they computed?

We use the metric adopted in (Ress & Heeger, Nat Neurosci 2000). The following steps are taken:

1) All trials are set to have a mean of 0 % signal. (This doesn't affect future plotting, if for example 0% is set as the null condition).

2) The mean time course across all selected trials is computed.

3) For each trial, the dot product between that trial's time course and the mean time course is computed. This gives oneamplitude for each trial.

4) The mean +/- SEM of these amplitudes are plotted for each condition.

The advantage of this method compared to the mean amplitudes is, it is insensitive to your selection of when the peak and baseline periods occur. Further, by taking the dot product, the shape of the curve is also taken into account without adding a priori assumptions. If a trial has high signal, but at a different time than the rest of the trials, then during the times when the mean time course and that trial are of different sign, there will be a negative contribution to the amplitude.

The disadvantage is when this would be a bad thing, or if different conditions have basically different shapes. E.g., if the signal decreases during the baseline period but increases during other conditions, the relative fMRI amplitudes will be inconsistent. For this reason it is recommended to toggle off the baseline condition when using this; then it won't be used to compute the mean time course. What Are Relative Amplitudes?

Page 12: Intro Slide

6) Mean Amplitudes: Plot the mean difference between BOLD signal between designated “peak” and “baseline” periods (described below).

Face Animal Car Novel-0.5

0

0.5

1

1.5

2

Condition

Mea

n A

mpl

itude

, % S

igna

l

*

**

FaceAnimalCarNovel

Plot Mean Amplitudes

Page 13: Intro Slide

7) Mean Time Course Plus Amplitudes: Plot the mean amplitudes (option 5) and mean time courses (option 3) together. The default option.

Face Animal Car Novel-0.5

0

0.5

1

1.5

2

Condition

Me

an

Am

plit

ud

e,

% S

ign

al

*

* *

-10 0 10 20 30-1

0

1

2

Trial time, secs%

Sig

na

l

FaceAnimalCarNovel

Mean Tcs Plus Amplitudes

Page 14: Intro Slide

8) FFT of mean tSeries: Perform a Fast Fourier Transform analysis on the mean time series across scans, and plot the results, labeling the frequency at which most events occur in the scans.

0 10 20 30 40 50 60 700

20

40

60

80

100

120

Cycles Per Scan

Pe

rce

nt

mo

du

latio

n

Z-score: 3.70SpectrumEvent Frequency

The Z-score is a measure of the difference in percent modulation between the red and blue regions of the spectrum, divided by the standard deviation of the blue regions. It’s similar to SNR.

FFT of Whole Timecourse

Page 15: Intro Slide

9) GLM: Apply a general linear model to the time series and illustrate the results. Displays the HRF used, the design matrix for the scans, the computed beta values for each condition, and a plot of the time course with scaled predictor functions for each condition.

0 5 10 15-0.1

-0.05

0

0.05

0.1

0.15

Time, frames

Arb

itrar

y U

nits

HRF function used: Mean trial for conditions 1

Predictors (Conditions + DC)

Tim

e, F

ram

es

Design Matrix

1 2 3 4

50

100

150

200

250

Face Animal Car Novel0

5

10

15

20

Bet

a V

alue

s

Hbar

50 100 150 200-2

-1

0

1

2

Time, sec

% S

igna

l

Time course + Scaled Predictors

Apply GLM To Timecourse

Page 16: Intro Slide

Event-Related Parameters

Use Settings | chop tSeries Settings… to set the event-related analysis parameters for the selected scans. After selecting OK, the mean tSeries for the ROI is re-chopped according to the new parameters. Each parameter is described in the following slides.

Event-Related Parameters Title

Page 17: Intro Slide

Time Window: Specify the period around the start of each trial from which to take the peri-stimulus time course. In seconds, the code will grab the relevant frames covering this period:

-10 0 10 20 30-1

0

1

2

Trial time, secs

% S

ign

al

FaceAnimalCarNovel

Time Window

Page 18: Intro Slide

Peak and Baseline Periods: Time period, in seconds, from which peak activity and baseline, non-event-related activity is estimated, respectively. This is used for the “mean amplitude” measurement, for signal-to-noise measurements, and for the determination of significant activations (asterisks). By default, the peak period is denoted with a green line on the top of axes, the baseline period by a red line underneath. You can turn these off using the Settings | Show Peak/Baseline Periods option.

-5 0 5 10 15 20

-1

0

1

2

Face

% S

igna

l

*

Trial time, secs

Face Animal Car Novel-0.5

0

0.5

1

1.5

2

Condition

Me

an

Am

plit

ud

e,

% S

ign

al

*

* *

(-)(+)

Peak and Baseline Periods

Page 19: Intro Slide

Alpha for significant activation: When the whole time series is chopped up, the data during the specified peak and baseline periods are compared using a one-tailed Student’s t test (peak > baseline). This is used to determine whether to place an asterisk for significant activation for each condition. This parameter sets the threshold significance level () for significant activation. It is also important in across-voxel analyses (for the upcoming MultiVoxel UI).

-5 0 5 10 15 20

-1

0

1

2

Face

% S

igna

l

*

Trial time, secs

Alpha for significant activation

Page 20: Intro Slide

Shift onsets relative to time course, in seconds: For some scans, the assigned .par files may not reflect the onsets in the data (for instance, because of discarded initial frames). One option is to fix the .par files for these scans, which should work fine. Alternatively, it’s possible to fix this on the fly, by entering a value in this parameter.

A positive value for this parameter causes the time series to move backwards relative to the onsets, as illustrated below.

Time, secs20 40 60 80 100 120 140 160 180 200

-1.5

-1

-0.5

0

0.5

1

1.5

2

% S

igna

l

20 40 60 80 100 120 140 160 180 200-1.5

-1

-0.5

0

0.5

1

1.5

2

Time, secs

% S

igna

l

Regular

Shifted 8 seconds

Shift onsets

Page 21: Intro Slide

Use which conditions for computing SNR / HRF?: Depending on the ROI, you may not expect all conditions to elicit a positive response. By including weakly-responding conditions in calcuations of signal-to-noise ratios, or computing hemodynamic impulse response functions for a GLM, the results SNR / HRF will be weaker than they should be. This parameter allows you to specify the conditions to use. It defaults to all non-null conditions.

0 5 10 15-0.1

0

0.1

0.2

0.3

Time, frames

Arb

itrar

y U

nits

HRF function used: Mean trial for conditions 1 2 3 4

SNR Peak Vs Baseline: 10.98 dB

0 5 10 15-0.2

0

0.2

0.4

0.6

Time, frames

Arb

itrar

y U

nits

HRF function used: Mean trial for conditions 4

SNR Peak Vs Baseline: 8.11 dB

SNR / HRF conditions

Page 22: Intro Slide

HRF to use for computing GLM?: There are several ways to go about applying a general linear model; this option provides a flag for choosing between them. The results of each option will be illustrated in the following slides.

HRF flag intro

Page 23: Intro Slide

HRF option 0: This option specifies deconvolving the time series using the selective averaging technique specified in Dale AM, Buckner RL. Selective averaging of rapidly presented individual trials using fMRI. Human Brain Mapping 5:329-340, 1997.

It is currently not enabled for the Time Course UI, but may be soon. Deconvolving time courses is useful for rapid event-related designs. An example of this is illustrated below. You can access this by using the Event-Related | Deconvolve… option in the mrVista view, and plotting data from the resulting Deconvolved data type.

-5 0 5 10 15 20-0.5

0

0.5

1

1.5

2

Time, sec

Act

iva

tion

, Pe

rcen

t S

ign

al c

han

ge

ROI: LLO Analysis: nbin3

Object task: n = 1n = 2-3n = 4-5n >= 6

HRF option 0

Page 24: Intro Slide

HRF option 1: avg TC for ROI. This option, like all nonzero options, specifies that a single predictor function is constructed for each condition, plus a DC baseline predictor for each scan (in case the scanner behaved differently for different scans). The predictors for each condition are constructed by convolving a delta function that specifies trial onsets with a hemodynamic impulse response function, or HRF (HIRF is sometimes used).

0 5 10 15-0.05

0

0.05

0.1

0.15

Time, framesA

rbitr

ary

Uni

ts

HRF function used: Mean trial for conditions 1 2 3 4

With option 1, the HRF function is estimated from the mean time courses. The conditions used to estimate this HRF are specified in the previous parameter, SNR/HRF conditions.

50 100 150 200-2

0

2

Time, sec

% S

igna

l

Time course + Scaled Predictors

HRF option 1 – avg Tc

Page 25: Intro Slide

HRF option 2: Boynton gamma function. This option uses the HRF function estimated in Boynton GM, Engel SA, Glover GH, Heeger DJ.J Linear systems analysis of functional magnetic resonance imaging in human V1. Neurosci. 16(13):4207-21, 1996.

Time, frames0 5 10 15 20

0

0.1

0.2

0.3

0.4

Arb

itrar

y U

nits

HRF function used: Boynton gamma function

50 100 150-2

0

2

Time, sec

% S

igna

l

Time course + Scaled Predictors

Note that this can sometimes underestimate the extent of response in block-designs—this happens if the .par file only specifies of each block, but not onsets of different events within a block. HRF option 1 can circumvent this, or you can add the extra onsets. Often, the results of the GLM are fairly insensitive to this problem, though.

HRF option 2 – Gamma functions

Page 26: Intro Slide

HRF option 3: SPM Difference-of-Gammas function. This uses the function commonly used in SPM analyses [a reference is forthcoming]. Note that, unlike the Boynton gamma function, this HRF includes a post-event undershoot.

Time, frames0 5 10 15 20

-0.2

0

0.2

0.4

0.6

Arb

itrar

y U

nits

HRF function used: SPM difference-of-gammas

Predictors (Conditions + DC)

Tim

e, F

ram

es

Design Matrix

1 2 3 4

50

100

150

200

250

FaceNRep AnimalNrep CarNRep NovelNrep0

2

4

6

Bet

a V

alue

s

Hbar

50 100 150 200-2

0

2

Time, sec

% S

igna

l

Time course + Scaled Predictors

HRF option 3 -- SPM

Page 27: Intro Slide

HRF option 4 – Dale & Buckner HRF

HRF option 3: Dale & Buckner HRF. This is the HRF used by Freesurfer FS-FAST code. It is highly similar to the Boynton gamma function.

Page 28: Intro Slide

Normalize all trials during baseline period?: This option specifies whether, taking the peristimulus time courses for each condition, each trial should be DC-shifted such that the mean signal during the specified baseline period is 0. If 1, the resulting mean time courses are what’s referred to as an event-related average. If 0, they are not aligned, which may be useful to see baseline drift effects are present in the detrended time series, or for observing the overall stability of the baseline period.

-5 0 5 10 15 20-1

0

1

FaceNRep

% S

igna

l *

Normalize option = 0 Normalize option = 1

-5 0 5 10 15 20

-1

0

1

2

Face

% S

igna

l

*

Trial time, secsTrial time, secs

Normalize Trials Flag