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
 Automatic Paradigm File Generator
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mack
BIAC Alum

USA
19 Posts

Posted - May 07 2003 :  4:57:18 PM  Show Profile  Visit mack's Homepage  Reply with Quote
I just wanted to share a very quickly tested script I wrote that I find handy for creating paradigm files from my CIGAL ppf files. The file is in:

\\Gall\Programs\User_Scripts\Mack\cigal2paradigm.m

to call the script, just type:
cigal2paradigm(cigalFilename, paradigmFilename)

It is proper form to have the second column of the ppf file listing the stimulus type. Thus if you had a study comparing happy faces and sad faces with random objects in between, you would put a "1" in the second column on happy face lines, a "2" in the second column on sad face lines and a "0" in the second column on random object lines. This script will generate an output file with zeros at each time point with 1's and 2's replacing the zeros at each time point where a stimulus of type 1 or 2 is shown.

This script takes in to account startdelay, stopdelay and t_r values, so make sure these are all set appropriately or the script may not work.

Again, I have only tested this on my own CIGAL ppf files, so please double-check the output to make sure it makes sense. If you see any bugs, please let me know.

Edited by - charles.michelich on May 07 2003 5:24:32 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.44 seconds. Snitz Forums 2000