hi,
in the connectome gui, stimulation-based results part.
the list of modality available correspond to what ? the group connectomes ?
to fill this list, you use this:
% check for canonical fiber sets
fdfibs=dir([ea_getconnectomebase('dmri'),filesep]);
for fdf=1:length(fdfibs)
if fdfibs(fdf).isdir && ~strcmp(fdfibs(fdf).name(1),'.')
[~,fn]=fileparts(fdfibs(fdf).name);
modlist{cnt}=fn;
sf(cnt)=1;
cnt=cnt+1;
end
end
ea_getconnectomebase return ‘lead/connectomes/dMRI/’ (and then you add again a filesep it’s not necessary)
then you list what’s inside this directory using dir and you keep in modlist only the directory (if fdfibs(fdf).isdir)
so the connectome files are not seen.
we made a directory (let’s say “general”) in ‘/lead/connectomes/dMRI’ and then we see this directory in the modality list in the stimulation based results.
then when we try to do something.
it looks for a data.mat file in /lead/connectomes/dMRI.
what should be this data.mat file ?
moreover we would like to generate for each patients, the fiber meshs resulting from the stimulation-based results.
and load in lead_group each patient fiber mesh (not the total fibers but the one selected by the stimulation-based results).
if each patient can have their fibers in a different color that’s a bonus:)