Hi all,
Sorry for the silly question.
I want to use script 'tutorial_frontiers2018_single.m'. But I got the error message 'The first argument must be the full path to the tutorial folder.'. I set like this before excute m.file, bids_dir = 'H:\user\ds000117'. What is my mistake?
Jun
The folder you specify must contain the file dataset_description.json and the folder derivatives .
https://openneuro.org/datasets/ds000117/versions/1.0.3
This error is generated here:
%% ===== CREATE PROTOCOL =====
% Start brainstorm without the GUI
if ~brainstorm('status')
brainstorm nogui
end
% Output folder for reports
if (nargin < 2) || isempty(reports_dir) || ~isdir(reports_dir)
reports_dir = [];
end
% You have to specify the folder in which the tutorial dataset is unzipped
if (nargin < 1) || isempty(bids_dir) || ~file_exist(bids_dir) || ~file_exist(bst_fullfile(bids_dir, 'derivatives')) || ~file_exist(bst_fullfile(bids_dir, 'dataset_description.json'))
error('The first argument must be the full path to the tutorial folder.');
end
% The protocol name has to be a valid folder name (no spaces, no weird characters...)
ProtocolName = 'Frontiers2018Single';
% Delete existing protocol
gui_brainstorm('DeleteProtocol', ProtocolName);
% Create new protocol
gui_brainstorm('CreateProtocol', ProtocolName, 0, 0);
% Set visualization filters: 40Hz low-pass, no high-pass
panel_filter('SetFilters', 1, 40, 0, [], 0, [], 0, 0);
Thanks for quick reply. Yes. The folder I specify contain both file.
Jun
Put a breakpoint at line 89 and check what is wrong...
Thank you so much. The problem is resolved. My input method to the function was incorrect.
Jun
chanda
January 2, 2023, 2:57am
6
Hi, how did you manage to make the input method to the function correct? have the same problem here @Junichi_Uemura
https://neuroimage.usc.edu/forums/t/script-doesn-t-work-tutorial-hcp-m/38185