Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 Using qastats2
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Mar 07 2004 :  9:08:31 PM  Show Profile  Reply with Quote
BIAC MATLAB Users,

I am posting the instructions for using qastats2 to evaluate data quality and head movement. This text is taken directly from the "BIAC Manual" written by others at BIAC. I merely updated for our current tools and servers.

Enjoy,
Chuck

Using qastats2 to Evaluate Data Quality and Head Movement

To ensure consistent reporting of data quality and to help detect possible problems with data acquisition, two tools have been created for calculating quality assurance (QA) measures from the raw acquisition data. The first, qastats2, generates the mean activation and the position of the center of mass for every volume recorded. The second, QAProg, graphs the data from qastats2 on standardized plots and calculates some simple statistics.

1) Running qastats2 to generate quality assurance data

qastats2 needs at least three pieces of information, always in the same order:
qastats2(expName,dataDir,study);
  • expName = the name of the experiment.

  • dataSubDir = the data subdirectory containing the study's directory.

  • study = the full study number.
Additional help can be gained by typing help qastats2 in the MATLAB command window
So for example, from the MATLAB command window, you would type the following:
>> qastats2('myexp.01','Func',20040307_01234');

qastats2 then analyzes the functional data requested and stores its output in a new Analysis folder sudirectory. The output is in a file labeled QAStats.xls. If you open this file you will see it is only columns of numbers with no clear analysis. QAProg changes this data into a format you can recognize.

2) Running QAProg to plot the data in Excel
QAProg is an Excel driven program that must be added as a macro in Excel before it can be executed.

Setting up QAProg
  • Load Microsoft Excel

  • Right-click on the toolbar area at the top of the screen. You should see a list of options appear [e.g., "standard", "formatting", etc.]; click "customize" at the bottom of the list.

  • Click on the commands tab.

  • Under categories, at left, scroll down until you see “macros”. Click on macros.

  • Click on the custom button at right, and drag it up onto one of your toolbars at top. Do not close the customize window.

  • Right-click on the button that you dragged onto the taskbar.

  • Click on Assign Macro at the bottom of the list

  • Under Macro name, type '\\Gall\Programs\Macros\QAprog.xls'!Qacontrol

  • Close the customize window.
You can now access QAProg from Excel by clicking on the button that you created.

Running QAProg
  • Click on the newly made button.

  • Check the dimensions in ‘x’ and ‘y’. In the box labeled ‘z’ enter the slice thickness plus skip width.
QAProg will not work if you have retitled your worksheets or have changed their formatting significantly. For this reason, it is recommended that you run QAProg immediately after qastats2.

Edited by - charles.michelich on Mar 07 2004 9:11:10 PM
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.41 seconds. Snitz Forums 2000