#pragma section-numbers 1
[[Tutorials|Back to Tutorial Homepage]] | [[FsTutorial|Back to Course Homepage]] | [[MultiModalTutorialV6.0|Back to Multimodal Tutorial List]]
----
Other Multimodal Tutorials: [[MultiModalTutorialV6.0/MultiModalRegistration|Multimodal Registration]], [[MultiModalTutorialV6.0/FMRIGroupAnalysis|Surface-based Group fMRI Analysis]], [[FsTutorial/DiffusionV6.0|Diffusion and DTI Integration]]
----
{{{#!html
Individual fMRI Integration
}}}
----
The purpose of this tutorial is to get you acquainted with the concepts needed to perform fMRI integration in !FreeSurfer by interacting with the data from an individual subject. You will not learn how to perform fMRI analysis here; that knowledge is already assumed. This tutorial also does not assume any particular directory structure (as would happen in FS-FAST). This tutorial makes use of data from the Functional Biomedical Informatics Research Network (fBIRN).
<>
= fMRI Basics =
In fMRI, stimuli are presented to a subject, which induces a BOLD hemodynamic response function (HRF) in certain areas of the brain. The analysis is performed by first using motion correction, then correlating each voxel's time course with the stimulus schedule convolved with an assumed HRF shape. The result is an estimate of the HRF amplitude for each condition at each voxel, contrasts of the HRF amplitudes of various conditions, the variance of this contrast, and some measure of the signficance (eg, p, t, F, or z) map. All these maps are aligned with the motion correction template (from the functional analysis), which should be used as the registration template.
For a tutorial in resting state analysis, click here: FsFastFunctionalConnectivityWalkthrough
= Preparations =
== If You're at an Organized Course ==
If you are taking one of the formally organized courses, everything has been set up for you on the provided laptop. The only thing you will need to do is run the following commands in ''every'' '''new''' terminal window (aka shell) you open throughout this tutorial. Copy and paste the commands below to get started:
{{{
export SUBJECTS_DIR=$TUTORIAL_DATA/buckner_data/tutorial_subjs
cd $SUBJECTS_DIR/multimodal/fmri/fbirn-101
}}}
''To copy: Highlight the command in the box above, right click and select copy (or use keyboard shortcut Ctrl+c), then use the middle button of your mouse to click inside the terminal window to paste the command (or use keyboard shortcut Ctrl+Shift+v). Press enter to run the command.''
These two commands set the SUBJECTS_DIR variable to the directory where the data is stored and then navigates into the directory within the SUBJECTS_DIR that you will use for this part of the tutorial. You can now skip ahead to the tutorial (below the gray line).
== If You're Not at an Organized Course ==
If you are '''NOT''' taking one of the formally organized courses, then to follow this exercise exactly be sure you've downloaded the [[FsTutorial/Data|tutorial data set]] before you begin. If you choose not to download the data set you can follow these instructions on your own data, but you will have to substitute your own specific paths and subject names. These are the commands that you need to run before getting started:
{{{
## bash
export TUTORIAL_DATA=
export SUBJECTS_DIR=$TUTORIAL_DATA/buckner_data/tutorial_subjs
cd $SUBJECTS_DIR/multimodal/fmri/fbirn-101
## tcsh
source $FREESURFER_HOME/SetUpFreeSurfer.csh
setenv TUTORIAL_DATA
setenv SUBJECTS_DIR $TUTORIAL_DATA/buckner_data/tutorial_subjs
cd $SUBJECTS_DIR/multimodal/fmri/fbirn-101
}}}
''Information on how to source [[https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurfer|FreeSurfer]] is located [[https://surfer.nmr.mgh.harvard.edu/fswiki/DownloadAndInstall#Setup+&+Configuration|here]]''.
If you are not using the tutorial data you should set your {{{SUBJECTS_DIR}}} to the directory in which the recon(s) of the subject(s) you will use for this tutorial are located.
--------
The directory you are currently in is one of 5 subjects from the fBIRN Phase I acquisition. The subjects are called fbirn-10?, where "?" is 1, 3, 4, 5, 6 (note that #2 is missing). Each has a !FreeSurfer reconstruction by the name fbirn-anat-10?.v6 (anat is short for anatomical). This tutorial will only deal with subject fbirn-101 (but you can run the same commands on any of the subjects).
The data are the results from a sensorimotor paradigm (flashing checkerboard, audible tone, and finger tapping). The raw fMRI data was motion corrected but not smoothed. Each subject has four volumes (output from the fMRI analysis, which in this case, was done with FS-FAST):
||template.nii ||motion correction template (from functional analysis) ||
||ces.nii ||contrast effect size ||
||cesvar.nii ||variance of contrast effect size ||
||sig.nii ||signed significance of contrast (-log10(p)) ||
The contrast is the contrast between the ON and the OFF of the stimulus paradigm (i.e., a comparison against baseline). The sig.nii volume has signed -log10(p) values. So, if the p-value = .01, -log10(p) = 2. If the contrast was positive (i.e., ON>OFF), then the value would be +2, if negative (i.e., ONOFF is red/yellow.
1. ON