HFM Version 1.0

(All keypresses are indicated in bold, menu selections in italics)
Select a good slice near the center of the brain. Then, HFM -> Signa Anatomies
HFM ->Clip Anatomies
HFM ->EPI -> AIR tSeries

Special -> mrAlign

Init -> Full Analysis -> Create Flat Anat
HFM -> EPI -> Shift tSeries
HFM -> EPI -> strictmean  (This routine masks the data, so if any pixels are zero at any timepoint, then that voxel will be zero for the entire time series. If you have more than one run, and if some runs have more or less time points than other runs, you want to tell strictmean the exact number of time points in each run, because it zero-fills all of the empty time points on the shorter runs, and strictmean will then zero out the entire run!)
HFM -> EPI -> remake firstslice  (This will recreate a volume image of the 1st time point)
Init -> Full Analysis -> Create Flat Timeseries, Create Flat Correlations
HFM -> Fix Flat Anats
Note that these correlation maps only correlate with a sinusoid with a frequency of the number of cycles you specified earlier. It is much easier and more precise to do the next step instead.
HFM -> Statistics -> Inplane Correlations
HFM -> Statistics -> Flat Correlations
To create the regions:
(Demarcation Menu) Fill Regions

To plot a single region:
(Demarcation Menu) CA23DG (or any other region you want to plot)
(Figure 1 Image Window) Load tSeries
(matlab window)
a=tSeries(:,selpts(1,:)); b=mean(a,2); figure(3); plot(b);

To store the time series of all regions:
(Demarcation Menu) Region TS
threshold images (1=yes, 0=no) [0]  0  (better to not threshold to make analyses unbiased)
Paradigm Drift Correction Value (ie baseline in paradigm file) [0]  0  (ie which values in your paradigm file correspond to a physiological baseline for fMRI signal intensity)
Drift Correction Order [1] 1 (1=1st order, 2=2nd order, 0=0th order: what happens is that a polynomial of this order is fit to all of the timepoints who are baseline timepoints as specified above. The data is divided by this polynomial curve to deliver drift corrected % change from baseline signal intensity).
Saved RegionTS TS TS_points
Saving RegionTS.txt
(you can view this file with a spreadsheet program)



If you want to process another run on a subject who was already unfolded and processed, you can use the following shortcut:

HFM ->EPI -> AIR tSeries
HFM -> EPI -> Shift tSeries
HFM -> EPI -> strictmean
HFM -> EPI -> remake firstslice
Init -> Full Analysis -> Create Flat Timeseries, Create Flat Correlations
HFM -> Statistics -> Inplane Correlations
HFM -> Statistics -> Flat Correlations

Creating a paradigm file:

Option 1: Use the program Cproto.

To convert a Cproto paradigm file to a matlab file, do the following:
paradigm=load('CprotoParadigm.p');
whos paradigm
(Confirm that paradigm is a column vector)
save run1_p paradigm

Option 2: If you do not want to use Cproto, simply create in matlab a column variable called paradigm, place it in a correlation model for your paradigm, with the # of columes = to the # of time points, and save it to a file.

Example: For an alternating paradigm, 20 images off, 20 on, 4 repetitions, end with 20 image block off, delay by 1 timepoint:
matlab -nojvm

>> paradigm = zeros(120,1);
>> paradigm(22:(22+19))=ones(20,1);
>> paradigm(62:(22+19))=ones(20,1);
>> save run1_p paradigm

You can obviously employ hemodynamic models as does Cproto at your discretion (and coding).

Back to main