Table of Contents

TSTATPROFILE

TSTATPROFILE is a Matlab function used to calculate statistics on event-related fMRI data and is very similar to the function MRTEST. Like MRTEST, the input to TSTATPROFILE is a control file that includes all parameters for the fMR data as well as the location of relevant input files and folders. TSTATPROFILE will then read this control file and analyze the data without any further user interaction. The most recent version of TSTATPROFILE can be found on the BIAC server Gall. (\\Gall\Programs\User_Scripts\TStatProfile).

Control File

The control file includes all of the imaging parameters and information on data file location that TSTATPROFILE needs in order to run properly. Some parameters and information are required, and others are optional (see a brief description below).

Required Fields

Optional Fields

[*.av *.sd *.avb *.sdb Avg*.img Var*.img StdDev*.img Zscore*.img *.N *.COR *.T] Default is [0,0,0,0,0,0,0,0,0,0,0], all output files will be written.

Example Control File

  XPixels=64
  YPixels=64
  ZPixels=16
  Bins=1 2 3 4
  BinsTest=[1 2]
  ParadigmColumn=1 2
  PreEventPts=5
  PostEventPts=9
  Base1=-5
  Base2=0
  FilenameType=Unique
  Threshhold=300
  RunDataType=float
  CorrelationTemplate=\\Server\Data\BIAC\Study.01\Control\weights.txt
  OutPath=\\Server\Data\BIAC\Study.01\Analysis\49999\
  RunName=\\Server\Data\BIAC\Study.01\Data\TRAlign\49999\run01\V*.img
  Paradigm=\\Server\Data\BIAC\Study.01\Control\Paradigm1.txt
  Timepts=200
  RunName=\\Server\Data\BIAC\Study.01\Data\TRAlign\49999\run02\V*.img
  Paradigm=\\Server\Data\BIAC\Study.01\Control\Paradigm2.txt
  Timepts=200

Paradigm File Note

TSTATPROFILE has an additional capability that allows the function to read paradigm files with bin descriptions so that filenames can be understood a little better. For example, say there is a red visual stimulus shown to the subject that is encoded as bin “1”. Normally, any output representing this bin would have the number “1” in its name, e.g. “Bin01.T”. However, if the paradigm file specifies that the bin code “1” represent a red visual stimulus, then TSTATPROFILE can write out the file as “BinRed.T”. To use this option, the FilenameType parameter in the control file must be set to Unique, and the paradigm files must have the bin names defined within.

Example paradigm file:

  binnames =
    1 red
    2 blue
  matrix =
    0
    0
    1
    0
    0
    2
  etc…

Usage

  >>  TStatProfile;
  >>  out = TStatProfile;
  >>  TStatProfile(controlfname);
  >>  TStatProfile(flags);
  >>  TStatProfile(controlfname,flags);

Inputs

[*.av *.sd *.avb *.sdb Avg*.img Var*.img StdDev*.img Zscore*.img *.N *.COR *.T]

Outputs

xSize * ySize * zSize * numTimePts * numBins where xSize, ySize and zSize represent the resolution of the x, y and z dimensions of the image respectively, numTimePts is the number of time points in the epoch, and numBins is the number of bins that the program analyzed, defined in the control file.