Hi.
I am writing here because I would like to change the name of some condition in my protocol.
Now, they have complicated name like :'NIRSCOMP_2017-07-12_S02_0003'. I can rename them by changing the folder name manually in the database and then reloading it. But i would like to be able to set it with a script during the importation process.
I've try this :
% Input files
sFiles = [];
SubjectNames = {...
'Subject03'};
RawFiles = {...
'/lena13/home_users/users/ext-e.delaire/Desktop/NIRS_EEG/NIRSCOMP_work_folder/2017-07-13_S03/NIRS/2017-07-13_004/NIRSCOMP_S03-2017-07-13_004.nirs' };% Start a new report
bst_report('Start', sFiles);% Process: Create link to raw file
sFiles = bst_process('CallProcess', 'process_import_data_raw', sFiles, [], ...
'subjectname', SubjectNames{1}, ...
'datafile', {RawFiles{1}, 'NIRS-BRS'}, ...
'channelreplace', 1, ...
'channelalign', 1, ...
'evtmode', 'value');[sStudies,iStudies]=bst_get('Study');
sStudies.Name='S03';
sStudies.Condition={'GraspingRight'};
bst_set('Study', iStudies, sStudies);% Save and display report
ReportFile = bst_report('Save', sFiles);
bst_report('Open', ReportFile);
% bst_report('Export', ReportFile, ExportDir);
But it doesn't work : My goal is to have NIRSCOMP_S03... in the GraspingRight condition :
Another question, is there already a structure that can hold demographics data for each subjects ( like age...) that might be used for group analysis ?
Best,
Edouard