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
 tstatprofile2 autodetectmr error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rkozink
Junior Member

31 Posts

Posted - Dec 19 2005 :  1:25:35 PM  Show Profile  Reply with Quote
When attempting to run tstatprofile2, I have been receiving the following error message after selecting the control file:

??? Error using ==> tstatprofile2>main
Error using ==> autodetectmr
Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.

Error in ==> tstatprofile2 at 67
vout = main(tsp2params);

Error in ==> tstatprofile2 at 50
vout = tstatprofile2(fullfile(hdrPath,hdrFile));

Any suggestions?

josh.bizzell
BIAC Staff

USA
118 Posts

Posted - Dec 19 2005 :  1:33:32 PM  Show Profile  Reply with Quote
It looks like a problem with autodetectmr, which tries to determine the image format from the file name. Could you post your control file?
Go to Top of Page

rkozink
Junior Member

31 Posts

Posted - Dec 19 2005 :  1:38:15 PM  Show Profile  Reply with Quote
Josh,

My control file is:

XPixels=79
YPixels=95
ZPixels=68
Bins= 1 2 3
BinsTest=[1 2]
ParadigmColumn=1
PreEventPts=2
PostEventPts=7
Base1=-2
Base2=0
FilenameType=Unique
Threshhold=300
RunDataType=volume

CorrelationTemplate=C:/NicFree.01a/control/weights.txt
OutPath=C:/NicFree.01a/Analysis/swra_tstat/4301_v1/

RunName=C:/NicFree.01a/Data/Func/4301/4301_v1/run002_01/swraV*.img
Paradigm=C:/NicFree.01a/Control/prdgm_cue001.txt
Timepts=170

RunName=C:/NicFree.01a/Data/Func/4301/4301_v1/run002_02/swraV*.img
Paradigm=C:/NicFree.01a/Control/prdgm_cue002.txt
Timepts=170

RunName=C:/NicFree.01a/Data/Func/4301/4301_v1/run002_03/swraV*.img
Paradigm=C:/NicFree.01a/Control/prdgm_cue003.txt
Timepts=170
Go to Top of Page

josh.bizzell
BIAC Staff

USA
118 Posts

Posted - Dec 19 2005 :  2:34:30 PM  Show Profile  Reply with Quote
After running a few tests to replicate your data, I can't seem to figure out what the problem is. There are a few things I would recommend trying:

-If you have a .bxh file for your "swraV*.img" files, use it in the RunName field.
-Try using bxheventstats, a newer program for epoch averaging of event related fMR data.
-If you don't have .bxh files, but do have Analyze headers, try using those. (e.g. RunName=C:/NicFree.01a/Data/Func/4301/4301_v1/run002_01/swraV*.hdr)
-If you don't have .bxh files or Analyze header files, you might be able to use the Matlab function "bxhabsorb" to create .bxh files.

If none of these suggestions work, and you need to use tstatprofile2 rather than bxheventstats, you can email me and we can try to figure this out offline.

-Josh
bizzell@biac.duke.edu
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.51 seconds. Snitz Forums 2000