Commit 02c5c30e authored by Hoffstaedter, Felix's avatar Hoffstaedter, Felix

don't include empty Covaritates in Lookup

parent fca532d0
......@@ -243,6 +243,7 @@ elseif any(strcmpi(Covariates,'Scanner'))
sites = unique(Cov(:,si));
scanner = Cov(:,si);
else
si = 0;
scanner(1:numel(sub),1) = 1;
sites = 1;
end
......@@ -544,7 +545,7 @@ for i = 1:size(Covariates,2)
cnt = cnt+1;
end
end
Covariates = CovarData;
Covariates = CovNames;
Cov = CovData;
% save(fullfile(ms_dir,'Lookups',[spm_str_manip(gname,'rt') '_' suffix adfix '.mat']), ...
......@@ -641,15 +642,17 @@ fid = fopen(fullfile(ms_dir,'Lookups','info',[spm_str_manip(gname,'rt') '_' suff
fprintf(fid,'%s\n\n',['Sample information for Lookup-file: ' spm_str_manip(gname,'rt') '_' suffix adfix '.mat']);
% print sites
sites = unique(Cov(:,si));
scanner = Cov(:,si);
% print sites if > 1
if si
sites = unique(Cov(:,si));
end
for i=1:numel(sites)
st = SubDir(scanner==sites(i));
st = st{1};
fprintf(fid,'%s\n',['Site ' int2str(i) ': ' st]);
end
hasThat = {hasRS hasVBM hasDTI};
whathas = {'RESTING-STATE data','VBM data','DTI data'};
ag = find(strcmpi(Covariates,'Age')==1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment