Q: CTF coregistration with separate coil position?
See original GitHub issueProblem
I am trying to coregister CTF data with an MRI to produce a -trans.fif
What I have
The MEG data is separate from the positions in digitizer space so the raw
file doesn’t know about: hpi_coils.txt
, head_shape.txt
, fiducials.txt
.
The HPI coil positions in MEG device space seem to be stored in the raw
file: 'dig_points'
and 'coord_trans'
are present in raw.info['hpi_results']
after reading the raw.
Where I was going
I thought I would
- create a
mne.channels.DigMontage
from this data (I am just unsure whetherraw.info['hpi_results'][0]['coord_trans']
corresponds to the parameter'dev_head_t'
required byDigMontage
). - apply this montage to my raw file using
raw.set_montage(my_new_montage).save(raw_fname)
.
Where I’m stuck
However, mne.gui.coregistration
still does not show the head shape positions nor the HPI coils.
Any idea how to proceed?
(For the KIT, thanks to @teonbrooks, this is handle at the reading stage (read_raw_kit
needs the headshape to create the raw
), and in the Elekta the position are in the raw.fif in the first place.)
Issue Analytics
- State:
- Created 7 years ago
- Comments:36 (20 by maintainers)
Top Results From Across the Web
Getting started with Yokogawa data
With the MEG we have determined the position of the forehead marker coils relative to the MEG dewar. Using ft_sourceplot we can determine...
Read more >SPM12 Manual - Wellcome Centre for Human Neuroimaging
Each number refers to the position of a slice within the image file. The order of numbers within the vector is the temporal...
Read more >Discrimination of cortical laminae using MEG - PMC
For example, using conventional co-registration techniques (i.e. fiducial ... included designated locations for placement of fiducial coils.
Read more >Algorithms and other implementation details
continuous head position indicator (HPI) coil channels ... These data can be acquired separately from the MPRAGE data ... from mne coreg.
Read more >Coregistration of the TMS coil position used to target ...
... Motor imagery is a distinct, dissociable process compared to visual imagery, which is engaged by mental simulation of non-bodily stimuli [30,34]. Indeed, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok. Thanks again!
Thanks @LauraGwilliams !
@romquentin: @teonbrooks and I met and manage to incorporate the HPI, fiducials and digitized head shape points in an MNE object: https://gist.github.com/kingjr/8f971c73c79712b547cdd55c661c6a5a
you need to :
read_dig_montage
expect hpi points that are calledlpa
,rpa
andnasion
for the coordinates transformation, and will use the other as hpi coils.mne.gui.coregistration
expects a file and not an mne instance directly.If you’re ok, I’ll close the issue.