PDA

View Full Version : Problems importing BSTDemo MRI file


RAMP
June 10th, 2004, 07:52
Dear Brainstormers

I got the same message as JLH did when trying to plot Rap-Music results into MRI (http://neuroimage.usc.edu/brainstormforum/viewtopic.php?t=7). I think that the problem is caused by a failure in writing the SCS into the _subjectimage file of BSTDemoData. So when the routine scs2mri.m is called the SCS parameters are not transferred to the MRI plotting.

I tried another way, I used the _subjetimage file from Montreal study, where SCS parameters are defined, and I was able to plot the results of Rap-Music into MRI. I can load the Montreal _subjectimage.mat into MatLab and see its contents, but the same is not possible with BSTDemoData _subjectimage.mat, and I got a message "unable to read file".

Probably something is wrong during the creation of _subjectimage.mat of BSTDemoData set.


The steps I followed are:

1. Access MRIViewer -> Load somMRI
2. PCS Specification -> Assign
3. Subject Coordinate System -> Done
4. Save Anatomical Scans in -> Save (somDemo_subjectimage)

So, I get this message in matlab window:

Warning: Out of range or non-integer values truncated during conversion to character.
In c:\brainstorm\Toolbox\read_ctf_mri.m at line 88
In c:\brainstorm\Toolbox\bst_mriviewer.m (ctfmri_Callback) at line 423
In c:\brainstorm\Toolbox\bst_mriviewer.m at line 242
Error using ==> save
Can't write file

Although this message, a file named somDemo_subjectimage is created at somDemo_av_subject sub-directory, but when I try to read it with MRIViewer (Load Brainstorm Format) I get the message:

Error usin ==> load
Can't read file

So I used montreal_subjectimage.mat renaming it to somDemo_subjectimage.mat and put it into somDemo_av_subject sub-directory. Then, I can load it with MRIViewer (Load Brainstorm Format), and use it to perform dipole plotting of the results get from BSTDemoData set. That is, results generated by me, and not those generated previously with MontrealData set.

As stated before, I think that it is a failure during the creation of _subjectimage.mat.

Finally, I would like to congratulate with Brainstorm Team for the brilliant working they are doing, since the first version of Brainstorm.


Sincerely,

Roberto Piedade

Sylvain
June 10th, 2004, 10:36
Hi Roberto,

first thank you for being so enthusiastic in helping us imporving BrainStorm. This is very precious to us.

regarding your problem with the MRI BSTDemo file, it seems like I was unable to duplicate the error you're describing here:


The steps I followed are:

1. Access MRIViewer -> Load somMRI
2. PCS Specification -> Assign
3. Subject Coordinate System -> Done
4. Save Anatomical Scans in -> Save (somDemo_subjectimage)

So, I get this message in matlab window:

Warning: Out of range or non-integer values truncated during conversion to character.
In c:\brainstorm\Toolbox\read_ctf_mri.m at line 88
In c:\brainstorm\Toolbox\bst_mriviewer.m (ctfmri_Callback) at line 423
In c:\brainstorm\Toolbox\bst_mriviewer.m at line 242
Error using ==> save
Can't write file



The warning message is not harmful here. This is due to ASCII encoding of a string containing minor information in the CTF .mri format.

However, I'm more concerned by the error message related to the save operation.

Are you sure you're not running out of disk space on your machine here ?

If not, the best way to get a more explicit error message would to place a debug stop point in SAVE_FIELDNAMES at line 54 (type dbstop in save_fieldnames at 54 at the Matlab command prompt before running the MRI import sequence). This sould produce a more explicit error message.

Thanks again.