question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] mne coreg GUI saves fiducials in meg space but labels as mri space

See original GitHub issue

Try:

SUBJECT=sample
SUBJECTS_DIR=/path/to/mne_data/MNE-sample-data/subjects/
mne coreg

Save fiducials as test file

import mne
fids, coord_frame = mne.io.read_fiducials('/path/to/saved/mne_sample-fiducials.fif') 
print(fids)

The fiducials are in meg space but have coord_frame 5 corresponding to mri space.

[{'kind': 1, 'ident': 1, 'r': array([-0.07629625, -0.00062556, -0.00776012], dtype=float32),
 'coord_frame': 5}, {'kind': 1, 'ident': 2, 'r': array([0.00267222, 0.09362256, 0.03224791], dtype=float32), 
'coord_frame': 5}, {'kind': 1, 'ident': 3, 'r': array([ 0.07635873, -0.00258065, -0.01212903], 
dtype=float32), 'coord_frame': 5}]

Voxel space is something like:

array([[67.7471001 , 52.83904668, 48.1775196 ],
       [40.75665484, 24.14586344, 64.9023987 ],
       [16.50280451, 56.2472034 , 48.80732148]])

Either the fids should be changed to voxel space or the coordinate system should be changed to head.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
drammockcommented, Nov 19, 2019

the source of the tutorials are in /path/to/mnepython/tutorials/. The rendered versions get put in .../doc/auto_tutorials by sphinx.

0reactions
alexrockhillcommented, Nov 19, 2019

Ok sorry super basic question: it looks like auto_tutorials are maybe in the .gitignore? How do I make a feature branch with this edited?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using an automated approach to coregistration - MNE-Python
This example shows how to use the coregistration functions to perform an automated MEG-MRI coregistration via scripting. Generally the results of this ...
Read more >
Getting iEEG montage volume label and plotting electrodes on ...
So the solution is to assign fiducials automatically to your montage if they aren't there already ( montage.add_estimated_fiducials ) and then use mne....
Read more >
Multimodal Integration of M/EEG and f/MRI Data in SPM12
Keywords: MEG, EEG, fMRI, multimodal, fusion, SPM, inversion, faces ... However, in case you want to save time and disk space, ...
Read more >
SPM12 Manual
45.1.3 Using Dartel Tools→Normalise to MNI Space . ... unteractive GUI and then save the results in a mat file and use this...
Read more >
Corregistration between MEG and MRI - Google Groups
Anyway if you work "in the MNI space" wouldn't all brains be coregistered and thus landmarks across all participants have the same coordinates?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found