Permalink
Cannot retrieve contributors at this time
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?
NMR_OPTIMA_BIDS/OPTIMA_check_BIOMAX_4.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (23 sloc)
647 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function BIDS = OPTIMA_check_BIOMAX_4(BIDS) | |
% | |
% check for existing biomax file | |
% | |
% this function checks if a file biomax.out exists in the | |
% current subject's folder | |
% | |
% file history: | |
% created M. Czisch 13.11.2019 | |
cd(BIDS.input.dir) | |
% two versions are possible | |
is_verified = dir('*VERIFIED*'); | |
is_modified = dir('*MODIFIED*'); | |
if ~isempty(is_verified) || ~isempty(is_modified) | |
fprintf('\nfound biomax_out file\n'); | |
else | |
error('\nERROR. \nthe data have not been checked for consistency yet!\n\n'); | |
end | |
if ~isempty(is_verified) | |
BIDS.input.biomax = is_verified.name; | |
else | |
BIDS.input.biomax = is_modified.name; | |
end |