External Email - Use Caution
Dear All,
I have a destrieux-based connectome weight matrix, and wanted to see the edge weights between parcels as color-coded activations in freeview, something like the attached fig. I think that would be possible, if able to transform the weights txt file (symmetric matrix, it could be a .dat file) into an .mgh file to overlay it in freeview. Please let me know if it can be done, and how to, or there is another way.
Thank you, Octavian
this might be something you can do in matlab with the function below (found in $FREESURFER_HOME/matlab)
function surfoverlay = annotval2surfoverlay(annotvals,annotnames,annotfile) % surfoverlay = annotval2surfoverlay(annotvals,annotnames,annotfile) % % Example: % I have three annotations % annotnames = strvcat('superiortemporal','insula','postcentral'); % with matchine values % annotvals = [1.1 2.2 3.7]; % I want to create a surface overlay with all the vertices in a % given annotation having its corresponding value (ie, all vertices % in superior temporal gyrus being a value of 1.1, etc) % % Run these commands in matlab % annotnames = strvcat('superiortemporal','insula','postcentral'); % annotvals = [1.1 2.2 3.7]; % annotfile = '~/subjects/fsaverage/label/lh.aparc.annot'; % surfoverlay = annotval2surfoverlay(annotvals,annotnames,annotfile); % clear mri % mri.vol = surfoverlay; % MRIwrite(mri,'vals.mgh'); % % Run this command from a linux shell: % tksurferfv fsaverage lh inflated -aparc -ov vals.mgh -fminmax .01 1 %
On 1/6/2021 10:11 AM, Octavian Lie wrote:
External Email - Use Caution
Dear All,
I have a destrieux-based connectome weight matrix, and wanted to see the edge weights between parcels as color-coded activations in freeview, something like the attached fig. I think that would be possible, if able to transform the weights txt file (symmetric matrix, it could be a .dat file) into an .mgh file to overlay it in freeview. Please let me know if it can be done, and how to, or there is another way.
Thank you, Octavian
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
External Email - Use Caution
Thank you, this is very helpful. Octavian
On Wed, Jan 13, 2021 at 9:19 AM Greve, Douglas N.,Ph.D. < DGREVE@mgh.harvard.edu> wrote:
this might be something you can do in matlab with the function below (found in $FREESURFER_HOME/matlab)
function surfoverlay = annotval2surfoverlay(annotvals,annotnames,annotfile) % surfoverlay = annotval2surfoverlay(annotvals,annotnames,annotfile) % % Example: % I have three annotations % annotnames = strvcat('superiortemporal','insula','postcentral'); % with matchine values % annotvals = [1.1 2.2 3.7]; % I want to create a surface overlay with all the vertices in a % given annotation having its corresponding value (ie, all vertices % in superior temporal gyrus being a value of 1.1, etc) % % Run these commands in matlab % annotnames = strvcat('superiortemporal','insula','postcentral'); % annotvals = [1.1 2.2 3.7]; % annotfile = '~/subjects/fsaverage/label/lh.aparc.annot'; % surfoverlay = annotval2surfoverlay(annotvals,annotnames,annotfile); % clear mri % mri.vol = surfoverlay; % MRIwrite(mri,'vals.mgh'); % % Run this command from a linux shell: % tksurferfv fsaverage lh inflated -aparc -ov vals.mgh -fminmax .01 1 %
On 1/6/2021 10:11 AM, Octavian Lie wrote:
External Email - Use CautionDear All,
I have a destrieux-based connectome weight matrix, and wanted to see the edge weights between parcels as color-coded activations in freeview, something like the attached fig. I think that would be possible, if able to transform the weights txt file (symmetric matrix, it could be a .dat file) into an .mgh file to overlay it in freeview. Please let me know if it can be done, and how to, or there is another way.
Thank you, Octavian
Freesurfer mailing listFreesurfer@nmr.mgh.harvard.eduhttps://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1CJU9jrHuCtZ55tg3xJzu1ju2asEjJ-L_w2nSktON69hl_W...
freesurfer@nmr.mgh.harvard.edu