Hi,
I'm setting many subjects' individual anatomy by importing their MRIs. I do this after having first worked on a template brain for a while, so I have a lot of data, but simply a tree branch to default anatomy in the protocol tree.
Then I plan to scroll through all SubjectNames
and import the newly found MRIs stored in RawFiles
for i_sub = 1:numel(SubjectNames)
sFiles = [];
% Process: Import MRI
sFiles = bst_process('CallProcess', 'process_import_mri', sFiles, [], ...
'subjectname', SubjectNames{i_sub}, ...
'mrifile', {RawFiles{i_sub}, 'Nifti1'}, ...
'nas', [0, 0, 0], ...
'lpa', [0, 0, 0], ...
'rpa', [0, 0, 0], ...
'ac', [0, 0, 0], ...
'pc', [0, 0, 0], ...
'ih', [0, 0, 0]);
end
However, when I do this with my first subject, it imports the mri, but the subject in the tree is still marked "use protocol's default anatomy".
If I click on this subject and hover over its name for a while, the renamed selection that appears says "@default_subject". It looks like this after accepting this default and renaming the subject involuntarily.
When I look at the files on disk, I see this (sub-75control being the subject I actually just imported)
All files below the brainstormsubject.mat file in @default_subject are older files that were copied from I don't know where...
What did I do wrong?