<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ccn.ucla.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Run_PPI_in_FSL</id>
	<title>Run PPI in FSL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.ccn.ucla.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Run_PPI_in_FSL"/>
	<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Run_PPI_in_FSL&amp;action=history"/>
	<updated>2026-05-03T22:08:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Run_PPI_in_FSL&amp;diff=1205&amp;oldid=prev</id>
		<title>Ccn admin: 12 revisions</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Run_PPI_in_FSL&amp;diff=1205&amp;oldid=prev"/>
		<updated>2014-01-16T03:42:19Z</updated>

		<summary type="html">&lt;p&gt;12 revisions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Run_PPI_in_FSL&amp;diff=1200&amp;oldid=prev</id>
		<title>Elau: Undo revision 2786 by Manson (talk)</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Run_PPI_in_FSL&amp;diff=1200&amp;oldid=prev"/>
		<updated>2011-07-06T23:52:27Z</updated>

		<summary type="html">&lt;p&gt;Undo revision 2786 by &lt;a href=&quot;/wiki/index.php/Special:Contributions/Manson&quot; title=&quot;Special:Contributions/Manson&quot;&gt;Manson&lt;/a&gt; (&lt;a href=&quot;/wiki/index.php?title=User_talk:Manson&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Manson (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Functional Connectivity &amp;amp; PPI in FSL=&lt;br /&gt;
PLEASE NOTE: This work is in progress. Follow these steps at your own risk.&lt;br /&gt;
&lt;br /&gt;
Psychophysiological Interaction (PPI) is a type of fMRI functional connectivity analysis that is specifically useful for looking at the interaction of two regions during a block of time (i.e. a task). This following describes a process for executing a PPI with FSL, based on a block designed experiment.&lt;br /&gt;
&lt;br /&gt;
==Essential web references for running a PPI analysis with FSL==&lt;br /&gt;
 http://www.fmrib.ox.ac.uk/Members/joreilly/what-is-ppi/ &lt;br /&gt;
 http://www.fmrib.ox.ac.uk/Members/joreilly/how-to-run-a-ppi-analysis-in-feat&lt;br /&gt;
&lt;br /&gt;
==References of interest==&lt;br /&gt;
 Friston, KJ, Buechel, C, et al. (1997).&lt;br /&gt;
 Psychophysiological and Modulatory Interactions in Neuroimaging. Neuroimage, 6, 218-229.&lt;br /&gt;
 http://dx.doi.org/10.1006/nimg.1997.0291&lt;br /&gt;
 Gitelman DR, Penny WD, Ashburner J, et al. (2003). &lt;br /&gt;
 Modeling regional and psychophysiologic interactions in fMRI: the importance of hemodynamic deconvolution. NeuroImage, 19(1), 200-7.&lt;br /&gt;
 http://dx.doi.org/10.1016/S1053-8119(03)00058-2&lt;br /&gt;
 Fair DA, Schlaggar BL, Cohen AL, et al. (2007). &lt;br /&gt;
 A method for using blocked and event-related fMRI data to study &amp;#039;resting state&amp;#039; functional connectivity. NeuroImage, 35(1), 396-405. &lt;br /&gt;
 http://dx.doi.org/10.1016/j.neuroimage.2006.11.051&lt;br /&gt;
 Murphy K, Birn RM, Handwerker DA, et al. (2009). &lt;br /&gt;
 The impact of global signal regression on resting state correlations: are anti-correlated networks introduced?. NeuroImage, 44(3), 893-905. &lt;br /&gt;
 http://dx.doi.org/10.1016/j.neuroimage.2008.09.036&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
The basic PPI model is: H(s)=H(t)+H(s*t)&lt;br /&gt;
where s is the seed timeseries, t is the task, s*t is the interaction between seed region and task, and H is HRF convolution. Our sequence of an analysis is:&lt;br /&gt;
&lt;br /&gt;
# fMRI pre-processing of raw data (skull stripping, motion correction, high-pass filtering)  and (optionally) removal of nuisance variables (motion, CSF &amp;amp; white matter timeseries)&lt;br /&gt;
# Determining a seed region of interest, based on a functional activation, an anatomical region, or a meta-analytic ROI. &lt;br /&gt;
# Obtaining an ROI mask in each subject’s native functional space and extracting the mean time series for the region.&lt;br /&gt;
# Running the PPI analysis using the FSL General Linear Model with regressors for the task, the seed region timeseries, and the interaction of these two terms.&lt;br /&gt;
&lt;br /&gt;
==Steps==&lt;br /&gt;
&lt;br /&gt;
===Preprocessing Model===&lt;br /&gt;
Goal: obtain a cleaned up BOLD functional file after brain extraction, filtering, and motion correction.&lt;br /&gt;
*Enter raw 4D data as input&lt;br /&gt;
*BET (skull stripping)&lt;br /&gt;
*MCFlirt (motion correction)&lt;br /&gt;
*Highpass filter&lt;br /&gt;
&lt;br /&gt;
===ROI selection===&lt;br /&gt;
Goal: Obtain a mask file for your Region Of Interest. Your ROI might be a voxel (based on peak activation from your fMRI analysis or meta-analysis), a sphere around a voxel, or an anatomical region (from a cortical/subcortical parcellation or an atlas).&lt;br /&gt;
&lt;br /&gt;
====Voxel processing====&lt;br /&gt;
Work in progress. Will take voxel from standard space, get a sphere around voxel, register to functional space for each subject, and get mean timeseries.&lt;br /&gt;
&lt;br /&gt;
===MPRAGE processing (optional)===&lt;br /&gt;
Goal: obtain an anatomical region of interest mask, along with white matter and CSF masks.&lt;br /&gt;
*BET MPRAGE&lt;br /&gt;
*Run FAST tissue-type segmentation on MPRAGE&lt;br /&gt;
*Register MPRAGE to functional space&lt;br /&gt;
*Transform CSF, white matter, gray matter masks to functional space&lt;br /&gt;
*Extract mean timeseries for CSF, WM voxels in filtered_func_data file output by preprocessing model; combine into one file&lt;br /&gt;
&lt;br /&gt;
===Nuisance Model (optional)===&lt;br /&gt;
Goal: Obtain the residuals file that accounts for nuisance variables such as CSF and white matter signal.&lt;br /&gt;
*Enter WM and CSF mean timeseries&lt;br /&gt;
*Add motion parameters to model&lt;br /&gt;
*Set contrasts to 1; these are not important as we&amp;#039;re only interested in the res4d file, not the COPE images&lt;br /&gt;
&lt;br /&gt;
===Get seed timeseries===&lt;br /&gt;
The mean timeseries for your seed ROI will always come from the same functional file you use to do the PPI analysis step.&lt;br /&gt;
&lt;br /&gt;
If you model out nuisance parameters:&lt;br /&gt;
*nuisance.feat/stats/res4D.nii.gz is the residual functional data that you will use in the actual analysis.&lt;br /&gt;
:Important: Res4D has a mean ~0, so you must add (10000 * mask) to create input data. You also must put &amp;#039;–odt float&amp;#039; at the end of the fslmaths command to get proper values.&lt;br /&gt;
:&amp;gt;&amp;gt; fslmaths mask –mul 10000 –add Res4D Res4D_input –odt float&lt;br /&gt;
*Extract seed timeseries from res4d_10000.nii.gz file&lt;br /&gt;
&lt;br /&gt;
If not: &lt;br /&gt;
*ppi_preprocessing.feat/filtered_func_data.nii.gz&lt;br /&gt;
&lt;br /&gt;
===PPI Model===&lt;br /&gt;
*Highpass filter at 10000&lt;br /&gt;
*Prewhiten&lt;br /&gt;
*Set up EVs for:&lt;br /&gt;
*#Psychological Regressor: your task, custom entry with 1 column, convolution Double Gamma (or whatever model you prefer)&lt;br /&gt;
*#Physiological Regressor: your seed timeseries, custom entry with 1 column&lt;br /&gt;
*#Interaction: the intereaction between Psych and Phys, basic shape is interaction, make zero Center for Psych and Mean for Phys.&lt;br /&gt;
*Set up contrasts as:&lt;br /&gt;
:1 0 0&lt;br /&gt;
:0 1 0&lt;br /&gt;
:0 0 1&lt;br /&gt;
:0 0 -1&lt;br /&gt;
Which will give copes for psych mean, phys mean, interaction positive mean, and interaciton negative mean.&lt;br /&gt;
&lt;br /&gt;
===Group Analysis===&lt;br /&gt;
*Enter single-subject COPEs into higher level mixed-effect simple OLS or FLAME model.&lt;br /&gt;
*Notes: &lt;br /&gt;
**Contrast masking can be used to separate the effects of positive correlations and negative correlations in group differences.&lt;br /&gt;
**A gray matter mask in MNI152 2mm standard space can be used as a pre-threshold mask in order to limit analysis to gray matter voxels.&lt;br /&gt;
&lt;br /&gt;
==Useful scripts==&lt;br /&gt;
[http://www.ccn.ucla.edu/media/fslgroup/PPI.tar.gz PPI scripts] contains:&lt;br /&gt;
*run_preprocessing_model.sh&lt;br /&gt;
*mprage_processing.sh&lt;br /&gt;
*run_nuisance_model.sh&lt;br /&gt;
*get_seed_ts.sh&lt;br /&gt;
*run_ppi_model.sh&lt;br /&gt;
&lt;br /&gt;
*design_preprocessing_template.fsf&lt;br /&gt;
*design_nuisance_template.fsf&lt;br /&gt;
*design_ppi_template.fsf&lt;/div&gt;</summary>
		<author><name>Elau</name></author>
	</entry>
</feed>