Skip to content
Permalink
cf412a1fc1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (16 sloc) 710 Bytes
function mkdir_BIDS(output_dir)
%
% prepare BIDS directory structure
%
% this function creates a subdirectory "BIDS" in the
% current subject's folder
%
% file history:
% created M. Czisch & F. Binder 8.11.2017
cmd_str = ['mkdir ', output_dir]; system(cmd_str);
cmd_str = ['mkdir ', output_dir, '/anat']; system(cmd_str);
cmd_str = ['mkdir ', output_dir, '/func']; system(cmd_str);
cmd_str = ['mkdir ', output_dir, '/dwi'] ; system(cmd_str);
cmd_str = ['touch ', output_dir, '/anat/logfile_anat_dcm2nii.txt']; system(cmd_str);
cmd_str = ['touch ', output_dir, '/func/logfile_func_dcm2nii.txt']; system(cmd_str);
cmd_str = ['touch ', output_dir, '/dwi/logfile_dwi_dcm2nii.txt']; system(cmd_str);