Single-subject resting-state fMRI analysis using seed-based correlation. fMRI time series at a given seed (such as the mPFC for the DMN) brain location is used to correlate with the fMRI time series at other brain locations. The distribution of brain regions showing significant correlation to the chosen seed consists of a resting-state network. Here we chose the hippocampus as the seed region for its functional role in memory.
- Pre-process the data following steps from the fMRI Pre-Processing page
- Create a folder path as such: /Users/jessica/data_analysis/seeg/s025/resting_analysis
- Download get_native_hippo_regressor_rest.m in your fhlin_toolbox/resting_analysis folder
- Change line 4 to
root_path='/Users/jessica/data_analysis/seeg';
path to your seeg folder - Change line 14 to
setenv('SUBJECTS_DIR','/Users/jessica/data_analysis/seeg/subjects');
your subject directory - Change line 24 to
'028';
your subjects dicom number and 34 to's025';
your subjects ID - Change line 54 to
'%s/%s/fmri_data/unpack/register.dat'
location of your unpack folder - Change line 57 to
'%s/%s/fmri_data/unpack/bold/%s/%s.nii.gz'
your subjects bold folder - Comment out lines 5 and 15
- Make sure your directory is /Users/jessica/data_analysis/seeg/s025/resting_analysis and run. If done successfully, output should be "DONE!" There should now be 3 files in your resting_analysis folder "native_hippo_regressors_rest_hippo_right.m," "native_hippo_regressors_rest_hippo_left.m," and "028-aseg.mgz"
- Download fconn_native_vol_aseg_120423.m in your fhlin_toolbox/resting_analysis folder
- Change line 4 to
'/Users/jessica/data_analysis/seeg/s025/fmri_data/unpack/bold/028';
your subjects bold folder - Change line 9 to
'/Users/jessica/data_analysis/seeg/s025/resting_analysis';
your subjects resting_analysis folder - Change line 13 to
'/Users/jessica/data_analysis/seeg/s025/fmri_data/unpack/mc_regressor.mat';
the location of your mc_regressor.mat file - Change line 54 to
's025';
your subject ID - Change line 107 to
'%s/regressor_wm_ventrical_028.mat'
you subjects dicom scan number - Make sure your directory is /Users/jessica/data_analysis/seeg/s025/resting_analysis and run. If done successfully, output should be "mri_vol2vol done." There should now be 4 files starting with "hippo_fconn_native_vol_aseg" in your resting_analysis folder
- Change line 47 from 1 to 0
flag_gavg=0;
this will create two hippo_fconn_native_vol_aseg_120423_hippo_left-anat.nii and two hippo_fconn_native_vol_aseg_120423_gavg_hippo_left-anat.nii (one left one right) in your resting_analysis folder in your resting_analysis folder
- Download show_gavg_fconn_native.m in your fhlin_toolbox/resting_analysis folder
- Change line 3 to
setenv('SUBJECTS_DIR','/Users/jessica/data_analysis/seeg/subjects');
and line 5 to your subject ID - Remove all lines after 10
- Make sure your directory is /Users/jessica/data_analysis/seeg/s025/resting_analysis and run. If done successfully, you should have a pop-up window labelled "Figure 1," if you click on a point another window "Figure 2" will pop-up
- Download fconn_vol2surf_032124.m in your fhlin_toolbox/resting_analysis folder
- Change line 5 to
file_register='/Users/jessica/data_analysis/seeg/s025/fmri_data/unpack/register.dat';
the location of your register.dat file - Change line 16 to your subject ID
- Change line 20 to
'/Users/jessica/data_analysis/seeg/s025/resting_analysis/hippo_fconn_native_vol_aseg_120423_gavg_hippo_left-anat.nii';
the location of your hippo_fconn_native_vol_aseg_120423_gavg_hippo_left-anat.nii file - Change line 21 to
'/Users/jessica/data_analysis/seeg/s026/resting_analysis/hippo_fconn_native_vol_aseg_120423_hippo_left-anat.nii';
the location of your hippo_fconn_native_vol_aseg_120423_hippo_left-anat.nii file - Make sure your directory is /Users/jessica/data_analysis/seeg/s025/resting_analysis and run. If done successfully the output should be "DONE!" 8 files, two hippo_fconn_native_vol_aseg_120423_gavg_hippo_left-anat-lh.stc, two hippo_fconn_native_vol_aseg_120423_hippo_left-anat-lh.stc, two s025_2_fsaverage_hippo_fconn_gavg_032124-lh.stc files, and two s026_2_fsaverage_hippo_fconn_032124-lh.stc (one lh one rh) in your resting_analysis folder
etc_render_fsbrain;('subject','s025');
a Figure 1 popup window should come up- Press F key to load hippo_fconn_native_vol_aseg_032124_gavg_hippo_left-anat-lh.stc file as a overlay
- Press D key to change the overlay threshold to [1.5 4]
- Repeat steps 1-3 but now load s026_2_fsaverage_hippo_fconn_032124-lh.stc
- You can also repeat these steps and load hippo_fconn_native_vol_aseg_120423_hippo_left-anat-lh.stc or s026_2_fsaverage_hippo_fconn_032124-lh.stc files and observe the differences in activation between fsaverage and functional connectivity maps or with and without global average.
Note
Within the Figure 1 GUI, press the W key for coordinates, G key for an advanced menu, and H to see options
- Download average_surf change lines.m and add to your seeg/group_level_analysis/resting_state folder and open in MatLab
- Make a folder /Users/jessica/data_analysis/seeg/group_level_analysis/resting_state/average and go to this directory in MatLab
- List starting from line 4 the subjects you want to include
- Change line 16-20 to your 2_fsaverage_hippo_fconn_032124 files (which should be located in your subjects resting analysis folder)
cond_stem={
'2_fsaverage_hippo_fconn_032124'
};
- Change line 22-26 to the output
cond_output_stem={
'resting';
};
- Change line 29-33 to
cond_stem_str={
'resting';
};
- Change line 35 to your root directory
root_dir='/Users/jessica/data_analysis/seeg';
- Change line 49 to the location of the stc files for your subjects and allow for indexing of your different subject IDs and the left/right hemisphere
[dummy,v,a,b,timeVec]=inverse_read_stc(sprintf('%s/%s/resting_analysis/%s_%s-%s.stc',root_dir,subject{subj_idx},subject{subj_idx},cond_stem{cond_idx},hemi_str));
- Change line 59 to
'%s/group_level_analysis/resting_analysis/average/fmri_surf_120423_%s_average.png'
the location of your average group analysis folder - If done successfully, you should have an image in your average folder