mne-tools / mne-tools/mne-python
ENH: combined gradiometers (plotting + stats)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.5k
- Forks
- 1.6k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 100
Description
@dengemann @agramfort
Continuing on our email discussion... As I said, the pairs of gradiometers can be combined to get a 2D vector, and hence be treated as a single dependent variable.
In terms of plotting this could be translated into a 3D color plot where hues indicate the combined gradiometers orientations, and light to the norm of the vector.
For example (made from Matlab sorry...):

and in terms of topography

With such view
i) you're closer to what you record and (and actually appreciate the complexity of the collected data).
ii) you can tell when you have an inversion of polarity (although this is generally directly visible with magnetometers). For example, in http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0085791, we observed a sign reversal of the topographical pattern using MVPA. While the norm of combined gradiometers is obviously blind to such thing.
Regarding statistics, that would be nice to apply a single analysis using both the angle and the norm differ across two conditions, as
i) you would keep all information (unlike when you use the norm)
ii) you would reduce the number of tests (unlike a single statistical test per gradiometer). I haven't found such analysis yet. You could off course test this separately using circular analysis for the angle.
Philipp Berens suggested me to use bootstrapping for testing both at once, but on my computer that rapidly became unpractical using so many sensors and time points.
An interesting follow up question could then be related to the time frequency transform applied to such vector.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by locating existing gradiometer plotting and statistical-analysis APIs, then clarify the intended combined representation and scope with maintainers. Done should be a documented, agreed implementation target for both plotting and statistics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data, data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100