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
 bxh_eventstats event query language
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

tankersley
BIAC Alum

USA
143 Posts

Posted - Jun 29 2006 :  1:25:11 PM  Show Profile  Reply with Quote
Okay; The problem was that I have

ptsbefore = 4
ptsafter = 8

SO I'll add a time point to the template.
One more question:
Does this mean that all the files batches successfully created for individual conditions only have the first 12 TRs of data?

Thanks,

Dharol
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Jun 29 2006 :  1:48:07 PM  Show Profile  Reply with Quote
The epoch averages for ptsbefore=4 and ptsafter=8 would have 13
time points. 8 + 1 + 4 (includes the timepoint of the event
itself). The template is only used after creating the averages.
Go to Top of Page

tankersley
BIAC Alum

USA
143 Posts

Posted - Jun 29 2006 :  2:18:19 PM  Show Profile  Reply with Quote
Okay; I specified 13 TRs in ptsbefore and ptsafter, so I'll add a timepoint to the template.

One remaining question:
Why can batches successfully create data files for individual conditions if the template is 12 but ptsbefore/after are 13? Does it just not process the 13th data point?

Thanks so much!

Dharol
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Jun 29 2006 :  3:12:24 PM  Show Profile  Reply with Quote
quote:
Originally posted by tankersley
One remaining question:
Why can batches successfully create data files for individual conditions
if the template is 12 but ptsbefore/after are 13? Does it just not
process the 13th data point?



What do you mean by "successful"?

Epoch averages and related data (_avg, _std, _n, etc.) do not require the template, so those data will be successfully generated regardless of the template. The template is only required to create _cor and _tmap files. If the template has the wrong number of timepoints, you shouldn't get any _cor or _tmap files, either for individual conditions or for comparisons. Do you get _cor or _tmap files for individual conditions when the template has the wrong number of timepoints?
Go to Top of Page

dvsmith
Advanced Member

USA
218 Posts

Posted - Oct 29 2007 :  4:43:38 PM  Show Profile  Visit dvsmith's Homepage  Reply with Quote
Hi,

I'm new to event_stats and I was wondering if anyone has a script for converting 3-column EV files into the .xml files that event_stats needs. I see there are several other functions for taking standard output from Presentation, Cigal, and E-Prime and generating the .xml files.

Thanks,
David
Go to Top of Page

petty
BIAC Staff

USA
453 Posts

Posted - Oct 29 2007 :  4:53:41 PM  Show Profile  Reply with Quote
*** sorry i totally misread your question ***

Edited by - petty on Oct 29 2007 4:54:54 PM
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Oct 29 2007 :  5:07:35 PM  Show Profile  Reply with Quote
We have ways to go from the XML to the 3-column timing files, but no easy way to go directly from the 3-column to XML. I'm guessing you have multiple 3-column timing files, each representing one condition. If you were able to get this data into a tab-separated or comma-separated file that looked something like this:

NAME,START,DURATION,WEIGHT
fixation,0,10,1
face,10,2.5,1
face,15,2.5,1
face,20,2.5,1
ask,25,2.5,1
probe,30,2.5,1

etc.

then you could use eventstable2xml (run it with the --help option to get a help message).

It actually wouldn't be too hard to put together a script that did this automatically, I suppose. I'll see what I can do.
Go to Top of Page

dvsmith
Advanced Member

USA
218 Posts

Posted - Oct 29 2007 :  5:25:03 PM  Show Profile  Visit dvsmith's Homepage  Reply with Quote
Thanks, Syam. A script would be useful for anyone using PsychToolbox (or something else with non-standard output) for stimulus presentation since the output files aren't in a standard format. The 3 column EV files are, however, standardized for almost everyone.

I'll see if I can convert my 3-column files into the format you suggest.

-David

Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Oct 30 2007 :  1:48:20 PM  Show Profile  Reply with Quote
A script called "3column2xml" is now available on golgi. Use it with the --help option to get a help message.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.39 seconds. Snitz Forums 2000