| Author |
Topic  |
|
|
lilykw
New Member

USA
19 Posts |
Posted - Oct 10 2006 : 4:10:43 PM
|
Hi all, I've modified the 'sample_timecourse_iris script from User_Scripts\irisanalysis to work with some AVID rois I drew, but I'm getting this error: ??? Undefined function or variable "userStatFuncs".
Error in ==> roitimecourse_iris at 69 out=roianalysis_timecourse_iris(dataPath,dataFileSpec,dataTypeSpec,roiPath,roiFileSpec,roiTypeSpec,...
Any help? I'm matlab challenged :( Thanks, Lily
|
|
|
josh.bizzell
BIAC Staff
   
USA
118 Posts |
Posted - Oct 10 2006 : 4:15:55 PM
|
Is there a line in your script (roitimecourse_iris) like this: userStatFuncs = {};
If not, you'll need that line. -Josh |
 |
|
|
lilykw
New Member

USA
19 Posts |
Posted - Oct 10 2006 : 7:43:14 PM
|
Thanks, Josh. I fixed that, but now it's erring at the top:
roiPath = '\\Nernst\Data2\Psychiatry\CUD.01\Analysis\ROI'; roiFileSpec = 'sprintf(''%s\\%s.bxh'',studies{study},studies{study})' roiTypeSpec = 'BXH';
saying: roiFileSpec = sprintf('%s\\%s.bxh',studies{study},studies{study}) ??? Error using ==> roianalysis_timecourse_iris IRIS file "\\Nernst\Data2\Psychiatry\CUD.01\Analysis\ROI\20060421_31700\20060421_31700.bxh" does not exist!
Error in ==> roitimecourse_iris at 69 out=roianalysis_timecourse_iris(dataPath,dataFileSpec,dataTypeSpec,roiPath,roiFileSpec,roiTypeSpec,...
I've modified it so it's looking for BXH which is what the AVID rois (I do make it look for the BXH, not the IMG, right?) and I know what the problem is--none of my ROIs have the subject number (studies{study}) as the file name, but it won't let me do any alternative to the dual studies{study} format shown above. I tried and it gave me this error:
??? Error using ==> roianalysis_timecourse_iris Error using ==> roianalysis_timecourse_iris>evalRoiFileSpec Unable to evaluate roiFileSpec! Check that it only uses the variables study{study} Error Message was: Error using ==> eval
-Lily
|
 |
|
|
petty
BIAC Staff
    
USA
453 Posts |
Posted - Oct 11 2006 : 09:08:44 AM
|
its looking for the study number.bxh because you have that defined here:
saying: roiFileSpec = sprintf('%s\\%s.bxh',studies{study},studies{study})
If you ROIs are names something else then the fileSpec should be different. for instance:
roiFileSpec = sprintf('%s\\ROI_file.bxh',studies{study})
would produce: "\\Nernst\Data2\Psychiatry\CUD.01\Analysis\ROI\20060421_31700\ROI_file.bxh" |
 |
|
|
lilykw
New Member

USA
19 Posts |
Posted - Oct 11 2006 : 10:46:06 AM
|
Hi Chris, I tried doing that both using a variable "roi_names{roi_name}" as the second string and with just one roi file typed directly into the space instead of having the second string, but it gives me this error:
??? Error using ==> roianalysis_timecourse_iris Error using ==> roianalysis_timecourse_iris>evalRoiFileSpec Unable to evaluate roiFileSpec! Check that it only uses the variables study{study}
And in the explanatory sample script is says that you have to have studies{study}, studies{study} as your strings, which makes no sense to me. Is there some way to have that restriction that I'm not seeing in the script? Thanks, Lily
|
 |
|
|
petty
BIAC Staff
    
USA
453 Posts |
Posted - Oct 11 2006 : 11:27:10 AM
|
what is your file structure?
ie: how are these rois organizes/named by subject? |
 |
|
|
lilykw
New Member

USA
19 Posts |
Posted - Oct 11 2006 : 11:47:43 AM
|
Analysis\ROI\Full_subjectnumber\ROI_filename.bxh
The ROIs are functional, and they're named Side-Gyrus-condition...so, for example--R-ACG-triangle.bxh |
 |
|
|
petty
BIAC Staff
    
USA
453 Posts |
Posted - Oct 11 2006 : 11:55:18 AM
|
you aren't going to be able to cycle through the ROIs within this script. you will have to run it individually for each one.
The script was designed for an individual volume roi, with all the subsequent ROIs in the single volume.
you could either A) merge them all into one single roi, or B) run it seperately for each roi and append the database with the information.
the merging won't work if the regions overlap. |
 |
|
|
lilykw
New Member

USA
19 Posts |
Posted - Oct 11 2006 : 12:42:12 PM
|
Hey Chris, Sorry to keep bugging you, I ran it with an individual, but now it's giving me this error:
??? Error using ==> roianalysis_timecourse_iris Cell contents reference from a non-cell array object.
Error in ==> roitimecourse_iris at 71 out=roianalysis_timecourse_iris(dataPath,dataFileSpec,dataTypeSpec,roiPath,roiFileSpec,roiTypeSpec,... What does that mean? |
 |
|
| |
Topic  |
|