Skip to content

ENH: Visualizing colocated MEG signal vectors #11579

@larsoner

Description

@larsoner

In OPMs (or if you work with fluxgates!) it's common to have two or three measurements at the same physical location, i.e., a vector-valued channel amplitude. This makes things like plot_topomap not work without some channel picking, and then you end up with incomplete information. (For VectorView/TRIUX it works because we pick mags -- but if that system had 3 mags instead of 1 mag 2 grad at each location it would have the same problem.) It would be really nice to visualize these automatically and nicely. Ideas, which I think I'd probably use all of at different times/use cases:

  1. Project activity to a spherical source space then back out to point mags at each location oriented outward. This is what xfit does with Neuromag data IIRC and something we probably want anyway / independent of this colocation issue.

    • API: source_proj='auto' or something that projects to source space then back out to outward-oriented point mags when MEG sensors are physically colocated, and can be set to True e.g. for Neuromag data to get data from all 306 sensors at least used at once.
  2. Instead of plotting 1 head+sensor array, plot 3 head+sensor arrays (like at the vertices of an equilateral triangle?) in the same set of axes so you can visualize all three directions at once.

    • API: colocated='xyz' (default) | 'x' | 'y' | 'z' or something might work to say which of the doublets/triplets to use.
  3. Allow reorientation of the MEG sensors to the device frame. By default for most systems AFAIK, Z is local to the sensor and points outward. For these vector-valued measures we could rotate so that X/Y/Z is RAS in the MEG device frame.

    • API: sensor_frame='local' (default) | 'meg' could work for this, and would work nicely with the "colocated" plots to make sure x/y/z are actually interpretable.

@georgeoneill @jasmainak (and anyone else working with OPMs!) do you have other ideas? What do you think of the above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions