## page was renamed from FsTutorial/MultiModalFmriGroupV5.1
## page was renamed from FsTutorial/MultiModalFmriGroup_freeview
[[Tutorials|Back to list of all tutorials]]<
>[[FsTutorial|Back to course page]]<
> [[FsTutorial/MultiModal_freeview|Back to Multimodal Tutorial List]]
##Other Multimodal Tutorials: [[FsTutorial/MultiModalDtiIndividual_freeview|B. Individual DTI Integration]], [[FsTutorial/MultiModalFmriIndividual_freeview|C. Individual fMRI Integration]], [[FsTutorial/MultiModalFmriGroup_freeview|D. Surface-based Group fMRI Analysis]]
----
Other Multimodal Tutorials: [[FsTutorial/MultiModalRegistration_freeview|Multimodal Registration]], [[FsTutorial/MultiModalFmriIndividual_freeview|Individual fMRI Integration]], [[FsTutorial/Diffusion_DtiIntegration|Diffusion and DTI 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 several subjects in a group analysis. 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, [[http://www.nbirn.net|www.nbirn.net]]).<
><
> <>
= fMRI Basics =
In fMRI, stimuli are presented to a subject, which creates a BOLD hemodynamic response function (HRF) in certain areas of the brain. The analysis is performed by first performing 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 significance (eg, p, t, F, or z) map. All these maps are aligned with the motion correction template, which should be used as the registration template.
= 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
}}}
''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 (this will paste the command). 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:
{{{
export TUTORIAL_DATA=
export SUBJECTS_DIR=$TUTORIAL_DATA/buckner_data/tutorial_subjs
cd $SUBJECTS_DIR/multimodal/fmri
}}}
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.
--------
There are five subjects from the fBIRN Phase I acquisition. They are 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?.v4. The [[FsTutorial/MultiModalRegistration_freeview|individual registration]] [[FsTutorial/MultiModalFmriIndividual_freeview|ROI Analysis]] have already been performed on all subjects. The data are the results from a sensorimotor paradigm (flashing checkerboard, audible tone, and finger tapping). The raw fMRI data were motion corrected but not smoothed. Each subject has four volumes:
||template.nii ||motion correction template ||
||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 (ie, 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, then the value would be +2, if negative (ie, ONOFF voxels whose p-values < .01.
1. The value in the first column is just the row number (starting from 0). Normally, the subject name would be here, but the subject name was not specified as input in the above command.
== Measure Mean HRF Contrast of Unsigned Activation in Each ROI ==
{{{
asegstats2table \
--meas mean \
--tablefile ces.abs-masked.mean.stats \
--i fbirn-101/ces.abs-masked.bb.stats \
fbirn-103/ces.abs-masked.bb.stats \
fbirn-104/ces.abs-masked.bb.stats \
fbirn-105/ces.abs-masked.bb.stats \
fbirn-106/ces.abs-masked.bb.stats
}}}
Click [[FsTutorial/MultiModalFmriIndividual/BbStats#ces.abs-masked.mean.stats|here]] to see the output (ces.abs-masked.mean.stats). Notes:
1. The values are the mean HRF values (raw MR units) of the ON>OFF or ONOFF voxels whose p-values < .01.
1. NONE of the values are negative. This is because the mask is positive (pos).
1. In particular, the cross-subject average of Left-Hippocampus is NOT close to 0 because only positive values were chosen. So, one must be careful how to interpret and draw conclusions from these numbers.<
>
## Other multimodal tutorials: [[FsTutorial/MultiModalRegistration_freeview|A. Multimodal Registration]], [[FsTutorial/MultiModalDtiIndividual_freeview|B. Individual DTI Integration]], [[FsTutorial/MultiModalFmriIndividual_freeview|C. Individual fMRI Integration]]
----
Other Multimodal Tutorials: [[FsTutorial/MultiModalRegistration_freeview|Multimodal Registration]], [[FsTutorial/MultiModalFmriIndividual_freeview|Individual fMRI Integration]], [[FsTutorial/Diffusion_DtiIntegration|Diffusion and DTI Integration]]<
>
----
[[https://surfer.nmr.mgh.harvard.edu/fswiki/Tutorials|Back to list of all tutorials]]<
>[[https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial|Back to course page]]<
> [[FsTutorial/MultiModal_freeview|Back to Multimodal Tutorial List]]