Hello Victoria,
I think the error you report refers to one of the image files, not the
parameters. I suggest you check that all images (especially volume 97 of
session 1) are actually readable, that all necessary data (e.g.,
hdr-file or so) are present and that you have read/write privileges.
One way to check your files is to see if they can be displayed in spm,
for which you could use the following code snippet, which will do this
for as many images as you want and will give you a summary in the end:
% === snip ===
imgs = spm_select(Inf, 'image', 'Please select images to check...');
ok = ' ';
notok = ' ';
clc;
disp(['... displaying ' num2str(size(imgs,1)) ' images, please wait...']);
for i = 1:size(imgs,1)
curr = imgs(i,:);
[p, nm, ~, ~] = spm_fileparts(curr);
try
evalc(['spm_check_registration(curr);']);
ok = char(ok, nm);
disp([' ... image ' nm ' from ' p ' seems to be readable,
continuing... ']);
catch
notok = char(notok, nm);
disp([' ... there seems to be a problem with image ' nm ' from ' p
', continuing... ']);
end;
end;
ok(1,:) = [];
disp(' ');
if ~isempty(ok)
disp('... the following images were likely readable:');
for i = 1:size(ok,1)
disp([' ... ' deblank(ok(i,:)) '...' ]);
end
else
disp('... NONE of the images was readable!');
end;
disp(' ');
notok(1,:) = [];
if ~isempty(notok)
disp('... there was a problem with the following images:');
for i = 1:size(notok,1)
disp([' ... ' deblank(notok(i,:)) '...' ]);
end
else
disp('... NONE of the images had problems!');
end;
% === snip ===
As always, watch for linebreaks when copying.
Cheers
Marko
Victoria Villalta wrote:
> Dear all,
> I am preprocessing a set of new files and I am running into the following error:
>
> Running 'Normalise: Write'
> Failed 'Normalise: Write'
> Error using spm_bsplinc
> File too small.
> In file "/~/spm8/spm_write_sn.m" (v4201), function "nonlin_transform" at line 205.
> In file "/~/spm8/spm_write_sn.m" (v4201), function "spm_write_sn" at line 120.
> In file "/~/spm8/config/spm_run_normalise_write.m" (v4152), function "spm_run_normalise_write" at line 19.
>
> No executable modules, but still unresolved dependencies or incomplete module inputs.
> The following modules did not run:
> Failed: Normalise: Write
> Skipped: Smooth
>
> I have run the same protocol before with no issues. I have also checked the parameter file '_sn.mat' and compared it with the one resulting in other projects and they seem similar to me (similar structure and fields and values within similar ranges).
>
> So I went ahead and segmented the T1 by using the toolbox included in the spm_batch. I still run into the same issue.
>
> Then I checked at the functional images (I have 2 different sessions of 246 volumes each) and apparently normalization stops at volume 96 of the first session.
>
> I don't know how to go around this. Any though of what the issue may be and how to fix it would be highly appreciated!
>
> Sincerely,
>
> Victoria
>
>
--
____________________________________________________
Prof. Dr. med. Marko Wilke
Facharzt für Kinder- und Jugendmedizin
Leiter, Experimentelle Pädiatrische Neurobildgebung
Universitäts-Kinderklinik
Abt. III (Neuropädiatrie)
Marko Wilke, MD, PhD
Pediatrician
Head, Experimental Pediatric Neuroimaging
University Children's Hospital
Dept. III (Pediatric Neurology)
Hoppe-Seyler-Str. 1
D - 72076 Tübingen, Germany
Tel. +49 7071 29-83416
Fax +49 7071 29-5473
[log in to unmask]
http://www.medizin.uni-tuebingen.de/kinder/epn/
____________________________________________________
|