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
 Eventstats errors
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

aawineco
Junior Member

USA
31 Posts

Posted - Dec 14 2010 :  4:22:45 PM  Show Profile  Reply with Quote
Hi All,

I am attempting to use eventstats, but keep getting errors.

here is my script:

bxh_eventstats --overwrite --optsfromfile options.txt $OUTDIR/$SUBJ/stats\
$RUNDIR/${SUBJ}_1214_run1.feat $PDIGMDIR/${SUBJ}_eventStats_run_1_12s.xml,$QADIR/qa_events_run1.bxh.xml\
$RUNDIR/${SUBJ}_1214_run2.feat $PDIGMDIR/${SUBJ}_eventStats_run_2_12s.xml,$QADIR/qa_events_run2.bxh.xml\
$RUNDIR/${SUBJ}_1214_run3.feat $PDIGMDIR/${SUBJ}_eventStats_run_3_12s.xml,$QADIR/qa_events_run3.bxh.xml\
$RUNDIR/${SUBJ}_1214_run4.feat $PDIGMDIR/${SUBJ}_eventStats_run_4_12s.xml,$QADIR/qa_events_run4.bxh.xml\
$RUNDIR/${SUBJ}_1214_run5.feat $PDIGMDIR/${SUBJ}_eventStats_run_5_12s.xml,$QADIR/qa_events_run5.bxh.xml\


# standardize the output
bxh_eventstats_standardize --refvol standard $OUTDIR/${SUBJ}/eventstat

I keep getting the error:

Query 'PosExp':
primary: value(1)
[XPath] value(1)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
Query 'NegExp':
primary: value(2)
[XPath] value(2)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
Query 'PosDec':
primary: value(3)
[XPath] value(3)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
Query 'NegDec':
primary: value(4)
[XPath] value(4)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
Query 'Neutral':
primary: value(5)
[XPath] value(5)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
event file(s) /mnt/users.q.shares/winecoff.0Q3fXjV2tG4pd1mdJQHZ/Analysis/TaskData/EventStats/Behavior/38059/38059_eventStats_run_1_12s.xml,/mnt/users.q.shares/winecoff.0Q3fXjV2tG4pd1mdJQHZ/Analysis/TaskData/38059/EmoReg/QA_EmoReg/qa_events_run1.bxh.xml
xmlXPathCompOpEval: function value not found
XPath error : Unregistered function
XPath error : Invalid expression


I have no idea what this means. Any ideas?

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Dec 14 2010 :  5:04:55 PM  Show Profile  Reply with Quote
The error may be that you are intending to use the "event" query language (value(1) is an "event"-type query), but somewhere in your options file you have the line:
querylanguage XPath
Changing it to:
querylanguage event
should hopefully fix it.
Go to Top of Page

aawineco
Junior Member

USA
31 Posts

Posted - Dec 16 2010 :  2:15:42 PM  Show Profile  Reply with Quote
That fixed that problem, but now I am having another. I am trying to run the ROI timecourse analysis and my mean comes out as 0 for all ROIs for all subjects. I keep getting the warning:

Warning: Orientations for Q:\AgEmoReg.03\Analysis\TaskData\EventStats\38059\stats_standardized_Neutral_avg_percent.bxh and mseg do not match!
(They are the same cardinal plane, but have a different oblique angle)

but I am not entirely sure how to fix this or if it is responsible for the problem. Any help would be appreciated.
Go to Top of Page

aawineco
Junior Member

USA
31 Posts

Posted - Dec 16 2010 :  3:24:01 PM  Show Profile  Reply with Quote
Let me clarify. Upon looking at my LOG_EPOCHAVG.txt I see the following:

/usr/local/packages/bxh_xcede_tools-1.9.8.9/bin/bxh_epochavg log file
rcsid: $Id: bxh_epochavg.cpp,v 1.104 2009-01-15 20:55:19 gadde Exp $
Start time: Wed Dec 15 14:49:58 2010

Command line:
/usr/local/packages/bxh_xcede_tools-1.9.8.9/bin/bxh_epochavg /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/38091/stats /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/38091/stats_avgspace0.bxh /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/Behavior/38091/38091_eventStats_run_1_12s.xml,/mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/38091/EmoReg/QA_EmoReg/qa_events_run1.bxh.xml /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/38091/stats_avgspace1.bxh /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/Behavior/38091/38091_eventStats_run_2_12s.xml,/mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/38091/EmoReg/QA_EmoReg/qa_events_run2.bxh.xml /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/38091/stats_avgspace2.bxh /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/Behavior/38091/38091_eventStats_run_3_12s.xml,/mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/38091/EmoReg/QA_EmoReg/qa_events_run3.bxh.xml /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/38091/stats_avgspace3.bxh /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/Behavior/38091/38091_eventStats_run_4_12s.xml,/mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/38091/EmoReg/QA_EmoReg/qa_events_run4.bxh.xml /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/38091/stats_avgspace4.bxh /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/Behavior/38091/38091_eventStats_run_5_12s.xml,/mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/38091/EmoReg/QA_EmoReg/qa_events_run5.bxh.xml --querylanguage event --query 'value(1)' --query 'value(2)' --query 'value(3)' --query 'value(4)' --query 'value(5)' --querylabel PosExp --querylabel NegExp --querylabel PosDec --querylabel NegDec --querylabel Neutral --overwrite --ptsbefore 2 --ptsafter 8 --basestartoffset -2 --baseendoffset 0 --forcetr 2 --maskfile /mnt/users.q.shares/winecoff.uzgD3akZFNtdwtQ4XjBS/Analysis/TaskData/EventStats/38091/stats_brainmask.bxh

Query 'PosExp':
primary: value(1)
[XPath] (value[@name='value']=1)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
Query 'NegExp':
primary: value(2)
[XPath] (value[@name='value']=2)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
Query 'PosDec':
primary: value(3)
[XPath] (value[@name='value']=3)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
Query 'NegDec':
primary: value(4)
[XPath] (value[@name='value']=4)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
Query 'Neutral':
primary: value(5)
[XPath] (value[@name='value']=5)
filter: true()
[XPath] true()
epoch exclude: false()
[XPath] false()
timepoints: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232 234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 336 338 340 342 344 346 348 350 352 354 356 358 360 362 364 366 368 370 372 374 376 378 380 382 384 386 388 390 392 394 396 398 400 402 404 406 408 410 412 414 416 418 420 422 424 426 428 430 432 434 436 438 440 442 444 446 448 450 452 454 456 458 460 462 464 466 468 470 472 474 476 478 480 482 484 486 488 490 492 494 496 498 500 502 504 506 508 510 512 514 516 518 520 522 524 526 528 530 532 534 536 538 540 542 544 546 548 550 552 554 556 558 560 562
Merging event lists...
Sorting event list...
Canonicalizing event list...
old number of intervals: 308
new number of intervals: 332
Epoch exclusion query for 'PosExp' will exclude events at the following onsets:
Epoch exclusion query for 'NegExp' will exclude events at the following onsets:
Epoch exclusion query for 'PosDec' will exclude events at the following onsets:
Epoch exclusion query for 'NegDec' will exclude events at the following onsets:
Epoch exclusion query for 'Neutral' will exclude events at the following onsets:
Query 'PosExp' will use 0 events in analysis.
Query 'NegExp' will use 0 events in analysis.
Query 'PosDec' will use 0 events in analysis.
Query 'NegDec' will use 0 events in analysis.
Query 'Neutral' will use 0 events in analysis.
Reading voxels 0 - 122879 (last is 122879)...
timepoints: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232 234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 336 338 340 342 344 346 348 350 352 354 356 358 360 362 364 366 368 370 372 374 376 378 380 382 384 386 388 390 392 394 396 398 400 402 404 406 408 410 412 414 416 418 420 422 424 426 428 430 432 434 436 438 440 442 444 446 448 450 452 454 456 458 460 462 464 466 468 470 472 474 476 478 480 482 484 486 488 490 492 494 496 498 500 502 504 506 508 510 512 514 516 518 520 522 524 526 528 530 532 534 536 538 540 542 544 546 548 550 552 554 556 558 560 562
Merging event lists...
Sorting event list...
Canonicalizing event list...
old number of intervals: 308
new number of intervals: 332
Epoch exclusion query for 'PosExp' will exclude events at the following onsets:
Epoch exclusion query for 'NegExp' will exclude events at the following onsets:
Epoch exclusion query for 'PosDec' will exclude events at the following onsets:
Epoch exclusion query for 'NegDec' will exclude events at the following onsets:
Epoch exclusion query for 'Neutral' will exclude events at the following onsets:
Query 'PosExp' will use 0 events in analysis.
Query 'NegExp' will use 0 events in analysis.
Query 'PosDec' will use 0 events in analysis.
Query 'NegDec' will use 0 events in analysis.
Query 'Neutral' will use 0 events in analysis.
Reading voxels 0 - 122879 (last is 122879)...
timepoints: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232 234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 336 338 340 342 344 346 348 350 352 354 356 358 360 362 364 366 368 370 372 374 376 378 380 382 384 386 388 390 392 394 396 398 400 402 404 406 408 410 412 414 416 418 420 422 424 426 428 430 432 434 436 438 440 442 444 446 448 450 452 454 456 458 460 462 464 466 468 470 472 474 476 478 480 482 484 486 488 490 492 494 496 498 500 502 504 506 508 510 512 514 516 518 520 522 524 526 528 530 532 534 536 538 540 542 544 546 548 550 552 554 556 558 560 562
Merging event lists...
Sorting event list...
Canonicalizing event list...
old number of intervals: 308
new number of intervals: 332
Epoch exclusion query for 'PosExp' will exclude events at the following onsets:
Epoch exclusion query for 'NegExp' will exclude events at the following onsets:
Epoch exclusion query for 'PosDec' will exclude events at the following onsets:
Epoch exclusion query for 'NegDec' will exclude events at the following onsets:
Epoch exclusion query for 'Neutral' will exclude events at the following onsets:
Query 'PosExp' will use 0 events in analysis.
Query 'NegExp' will use 0 events in analysis.
Query 'PosDec' will use 0 events in analysis.
Query 'NegDec' will use 0 events in analysis.
Query 'Neutral' will use 0 events in analysis.
Reading voxels 0 - 122879 (last is 122879)...
timepoints: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232 234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 336 338 340 342 344 346 348 350 352 354 356 358 360 362 364 366 368 370 372 374 376 378 380 382 384 386 388 390 392 394 396 398 400 402 404 406 408 410 412 414 416 418 420 422 424 426 428 430 432 434 436 438 440 442 444 446 448 450 452 454 456 458 460 462 464 466 468 470 472 474 476 478 480 482 484 486 488 490 492 494 496 498 500 502 504 506 508 510 512 514 516 518 520 522 524 526 528 530 532 534 536 538 540 542 544 546 548 550 552 554 556 558 560 562
Merging event lists...
Sorting event list...
Canonicalizing event list...
old number of intervals: 308
new number of intervals: 332
Epoch exclusion query for 'PosExp' will exclude events at the following onsets:
Epoch exclusion query for 'NegExp' will exclude events at the following onsets:
Epoch exclusion query for 'PosDec' will exclude events at the following onsets:
Epoch exclusion query for 'NegDec' will exclude events at the following onsets:
Epoch exclusion query for 'Neutral' will exclude events at the following onsets:
Query 'PosExp' will use 0 events in analysis.
Query 'NegExp' will use 0 events in analysis.
Query 'PosDec' will use 0 events in analysis.
Query 'NegDec' will use 0 events in analysis.
Query 'Neutral' will use 0 events in analysis.
Reading voxels 0 - 122879 (last is 122879)...
timepoints: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232 234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 336 338 340 342 344 346 348 350 352 354 356 358 360 362 364 366 368 370 372 374 376 378 380 382 384 386 388 390 392 394 396 398 400 402 404 406 408 410 412 414 416 418 420 422 424 426 428 430 432 434 436 438 440 442 444 446 448 450 452 454 456 458 460 462 464 466 468 470 472 474 476 478 480 482 484 486 488 490 492 494 496 498 500 502 504 506 508 510 512 514 516 518 520 522 524 526 528 530 532 534 536 538 540 542 544 546 548 550 552 554 556 558 560 562
Merging event lists...
Sorting event list...
Canonicalizing event list...
old number of intervals: 308
new number of intervals: 332
Epoch exclusion query for 'PosExp' will exclude events at the following onsets:
Epoch exclusion query for 'NegExp' will exclude events at the following onsets:
Epoch exclusion query for 'PosDec' will exclude events at the following onsets:
Epoch exclusion query for 'NegDec' will exclude events at the following onsets:
Epoch exclusion query for 'Neutral' will exclude events at the following onsets:
Query 'PosExp' will use 0 events in analysis.
Query 'NegExp' will use 0 events in analysis.
Query 'PosDec' will use 0 events in analysis.
Query 'NegDec' will use 0 events in analysis.
Query 'Neutral' will use 0 events in analysis.
Reading voxels 0 - 122879 (last is 122879)...
End time: Wed Dec 15 14:50:50 2010

Does this suggest that something is wrong in my options file?
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Dec 16 2010 :  3:29:09 PM  Show Profile  Reply with Quote
Thanks for posting that. Yes, if you have 0 events matching, then your queries are probably not correct. If you look at your events files, are there actual events with entries that look like this?
<value name="value">2</value>
That's what you are querying on with value(2). If it is something like this:
<value name="code">2</value>
then you need to use code(2) instead. (it's the text in quotes that is the actual name of the value).
Go to Top of Page

aawineco
Junior Member

USA
31 Posts

Posted - Dec 16 2010 :  3:32:51 PM  Show Profile  Reply with Quote
It looks like this:

</event>
<event units='secs'>
<onset>262.7</onset>
<duration>12</duration>
<value name='weight'>1</value>
<value name='condition'>38059_eventStats_run_1_12s.txt</value>
</event>

so perhaps I need to use:

querylabel PosExp
query "weight(1)"

instead?
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Dec 16 2010 :  3:33:53 PM  Show Profile  Reply with Quote
That's right, try that and see how it goes.
Go to Top of Page
  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.45 seconds. Snitz Forums 2000