Dear Carla,
> We are attempting an fmri analysis, using a design matrix with 16
> sessions. When we run the estimation model, instead of asking us which
> scans are required for each individual session, it asks which scans are
> required for all sessions. Choosing all scans at the same time does not
> work. When we use 12 sessions or lower, we are asked which scans are
> required for each session (1 through 12), and the analysis runs
> correctly. Does anyone know why can we do this with 12 sessions and not
> 16?
This is my fault. The idea was that some designs could be viewed as a
series of short sessions (e.g. burst-mode or sparse sampling). In this
context it would be easier to select all sessions at once.
The limit is 16 sessions. To change this, say to 32, change line 236
in spm_fmri_spm_ui.m from
if nsess < 16
to
if nsess < 32
% get filenames
%---------------------------------------------------------------
nsess = length(xX.iB);
nscan = zeros(1,nsess);
for i = 1:nsess
nscan(i) = length(find(xX.X(:,xX.iB(i))));
end
P = [];
**** if nsess < 16 ****
for i = 1:nsess
str = sprintf('select scans for session %0.0f',i);
if isempty(BCH)
q = spm_get(Inf,'.img',str);
else
q = sf_bch_get_q(i);
end %-
P = strvcat(P,q);
end
else
I hope this helps - Karl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|