Skip to content
Permalink
master
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
% IST Logfile Extraction / Number of scans
%
% transfers logfiles into BIDS tsv format
%
% file history:
% created M. Czisch 25.1.2018 based on A. Kuehnel script
function IST_logfile_bids(BIDS)
log = dir([BIDS.input.dir,'/LOG/*IST*.log']);
logfile=readtext([log.folder,'/',log.name],'\t');
string_logfile = cellfun(@num2str, logfile(:,4), 'UniformOutput', 0);
calc = cellfun('isempty',(regexp(string_logfile, 'calculus')));
if sum(~calc)>20
IST_logfile_final_bids(BIDS);
elseif sum(~calc)<20
IST_logfile_flipped_bids(BIDS);
end
end