PDA

View Full Version : Why brainstorm cannot import the demo database?


yuzhuliang
November 5th, 2007, 03:31
Hi,

I installed Brainstorm v.2.2.38 on my PC and downloaded BSTDemoData from the website. In my study following the tutorial, I cannot create a database. After i create a database following the tutorial, e.g. BSTDemo, it displays that "Current data is empty. Please proceeed to impoting data files: Database->New/Edit->Datasets(MEG/EEG)->Import New". Then when i import the data in the dialog "Importing data from...", once i select CTF format, it displays "Neither MEG nor EEG channels were found in selected dataset". What is the solution of this problem? Thanks in advance.

Regards

Yu

Sylvain
November 6th, 2007, 14:32
Weird indeed,

Could you please let me know where you have save de BSTDemo data and whether this latter contains a folder with a name with a .ds extension (code for CTF data format)? Also please let me know what are the folder paths you have used for this data. Please note that BrainStorm does not support folder names with blank spaces.

yuzhuliang
November 6th, 2007, 19:45
My matlab is R2006a
The Brainstorm is installed in C:\BrainStorm
The Data file is stored in C:\BSTDemoData

The sturcture of data folder is:
Directory of C:\BSTDemoData

11/07/2007 10:40 AM <DIR> .
11/07/2007 10:40 AM <DIR> ..
06/03/2005 06:47 PM 20,992 File Description.doc
11/07/2007 10:40 AM <DIR> MEGData
11/07/2007 10:40 AM <DIR> Subject
1 File(s) 20,992 bytes

Directory of C:\BSTDemoData\MEGData

11/07/2007 10:40 AM <DIR> .
11/07/2007 10:40 AM <DIR> ..
11/07/2007 10:40 AM <DIR> somDemo_av.ds
0 File(s) 0 bytes

Directory of C:\BSTDemoData\MEGData\somDemo_av.ds

11/07/2007 10:40 AM <DIR> .
11/07/2007 10:40 AM <DIR> ..
12/19/2002 02:18 AM 0 BadChannels
12/19/2002 02:21 AM 103,526 channel_file.txt
12/19/2002 02:21 AM 647 ClassFile.cls
12/19/2002 02:41 AM 854 somDemo_av.hc
12/19/2002 02:41 AM 0 somDemo_av.hist
12/19/2002 02:42 AM 546,008 somDemo_av.meg4
12/19/2002 02:43 AM 546,008 somDemo_av.meg4_dirty
12/19/2002 02:43 AM 418 somDemo_av.newds
12/19/2002 02:45 AM 1,811,115 somDemo_av.res4
9 File(s) 3,008,576 bytes

Directory of C:\BSTDemoData\Subject

11/07/2007 10:40 AM <DIR> .
11/07/2007 10:40 AM <DIR> ..
03/24/2005 06:09 PM 17,115,856 cortex.dfs
06/03/2005 06:38 PM 360,568 cortex_tess.mat
03/04/2005 04:24 PM 8,630,896 outer_skull.dfs
06/03/2005 06:38 PM 360,504 outer_skull_tess.mat
03/04/2005 04:25 PM 12,885,952 scalp.dfs
06/03/2005 06:38 PM 360,016 scalp_tess.mat
11/16/2002 06:02 PM 348 somMRI.hdr
02/04/2001 11:00 PM 16,778,244 somMRI.mri
8 File(s) 56,492,384 bytes

Total Files Listed:
18 File(s) 59,521,952 bytes
11 Dir(s) 20,761,407,488 bytes free
>>


I also attached two pictures:
The first one is the result after i create the database.

The second one is the result after i select ctf as the data format.

The error messages displayed in matlab command window are:
??? Output argument "F" (and maybe others) not assigned during call to "C:\BrainStorm\Toolbox\ds2brainstorm.m (ds2brainstorm)".

Error in ==> ds2brainstorm at 185
if nargin == 2

Error in ==> importdata at 486
DataInformation{iDataSet(k)} = ds2brainstorm(fullfile(Users.STUDIES,DataDir{iData Set(k)}),0,2);

Error in ==> importdata at 954
importdata MarkerInfo % jcm 19 august 2003 update the automatic selection of the first element

??? Error using ==> importdata system_select
Output argument "F" (and maybe others) not assigned during call to "C:\BrainStorm\Toolbox\ds2brainstorm.m (ds2brainstorm)".

??? Error while evaluating uicontrol Callback

Thanks in advance!


Zhuliang

Sylvain
November 7th, 2007, 01:51
Hi Zhuliang,

Thanks for your detailed posting. Unfortunately I cannot see the attached pictures. Please make sure you left the default box 'Do not use Markers' in the import window. Also please type 'User = get_user_directory' at the Matlab command prompt once BrainStorm is on.

Then type User.STUDIES and User.SUBJECTS. These should contain the path to BSTDemoData/MEGData and BSTDemoData/Subject respectively.

yuzhuliang
November 7th, 2007, 02:14
Thanks! Sylvain.

I uploaded the pictures again!


This is the message displayed in Matlab.

>> startup
Starting BrainStorm, watch for messages in Message Window . . .
BrainStorm Version:
BrainStorm v. 2.2.38 (10-Jul-2007)
If you cannot see BrainStorm windows, try typing bst_layout('full') at the command prompt
to reset window locations to their default full screen.
>> User = get_user_directory
User =
Comment: 'BSTDemo'
STUDIES: 'C:\BSTDemoData\MEGData'
SUBJECTS: 'C:\BSTDemoData\Subject'
FILELIST: [0x1 struct]
CurrentData: [1x1 struct]
>>

Thank you very much!

Zhuliang

Sylvain
November 8th, 2007, 03:14
thanks for the posting.

This is weird indeed. Did you try to select the .ds in the ImportData window and select also the 'create a new subject' item and then pressed 'import'? Or is it the message that is appearing whezn you have tried to do so ?

Thanks.

yuzhuliang
November 8th, 2007, 18:58
Thank you so much! Sylvain.

That is the error when i just select the CTF format. Really weird.

yuzhuliang
November 8th, 2007, 21:52
hi, Sylvain.

I checked the code in data reading and found that all the readed SensorRes.sensorTypeIndex are -1 -1 0 ......0. So in the checking of MEG and EEG sensors in the following two lines failed.

imegsens = find([SensorRes.sensorTypeIndex] == 5); % Indices of MEG sensors
ieegsens = find([SensorRes.sensorTypeIndex] == 9); % Indices of EEG sensors

It is really strange that i tested Brainstorm in another PC, it works!

But my office pc and labtop have the same problem.

Best Regards

Zhuliang

yuzhuliang
November 9th, 2007, 00:25
One of our lab PC (with Matlab R2006a) can open the demo database. I copied the opened database (with some .mat files generated) into my office PC, which can not open the orignal database. It works! After press refresh button, the obtained information is displayed. (See P1.jpg)

However, if i try to press import button to reimport data again, after i select CTF format, similar problem exists. (See P2.jpg)

Sylvain
November 9th, 2007, 14:25
Weird!

So what would be the difference between the two workstations ?

linreal
January 5th, 2009, 12:20
I have the same problem, and I am wondering how to load the channels file correctly.

Hi,

I installed Brainstorm v.2.2.38 on my PC and downloaded BSTDemoData from the website. In my study following the tutorial, I cannot create a database. After i create a database following the tutorial, e.g. BSTDemo, it displays that "Current data is empty. Please proceeed to impoting data files: Database->New/Edit->Datasets(MEG/EEG)->Import New". Then when i import the data in the dialog "Importing data from...", once i select CTF format, it displays "Neither MEG nor EEG channels were found in selected dataset". What is the solution of this problem? Thanks in advance.

Regards

Yu