morph maps, vertex missing/mismatch

Thank you Alex and Hari,

Regarding the indexing, this is not the problem. I only read the morph
map (i.e., the matrix) into matlab and look at the size of the matrix.
The matrix size for the dimension of the "from" brain is one too short
with respect to the actual number of vertices of the surface (for
some, but not all subjects). Regarding the 'mindist' command for
source space building, I was wondering whether you referred to early
steps in the freesurfer pipeline? I would like to obtain the morphing
from the ~130,000 vertices of one brain to the ~130,000 vertices of a
different brain. It should have nothing to do with for example a
source space created by mne_setup_source_space? I believe the command

mne_make_morph_maps --from subjID --to fsurfavr

uses all ~130,000 vertices of the sphere. So, basically, I run
mne_make_morph_maps as soon as all the freesurfer calculations are
done (no mne_setup_source_space or other functions have been run), and
then I have the problem already (and it also occurs for other than the
standard freesurfer brain).
Do you have any other ideas what the problem could be, and how to fix it?
Thank you in advance,

Bjorn

Regarding the indexing, this is not the problem. I only read the morph
map (i.e., the matrix) into matlab and look at the size of the matrix.

It is possible that there is a bug with indexing within the morph map
reading function (what I assume Alex was alluding to).

Can you try reading it with MNE-Python? If not, can you share 1) a bad
resulting .fif file and 2) the `*.sphere.reg` files for the "from" and "to"
subjects? MNE-Python can (also) compute morph maps from these files, and we
can use it to debug where there is an issue.

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170113/08ce7c7d/attachment.html