Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tested and working. Just a draft. Not many comments. #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions magia_mri_check.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
function [msg] = magia_mri_check(list)

% Runs magia_get_mri_file on a list of image_id to verify that the MRI (T1)
% is valid for analysis

msg = list;

for i=1:length(list)

try

mri_code=aivo_get_info(list{i},'mri_code');
magia_get_mri_file(list{i},mri_code{1});
msg{i,2}= 'MRI valid for analysis';

catch

msg{i,2}= 'ERROR: MRI not valid for analysis. Redownload necessary!';

end

end