mne-tools / mne-tools/mne-python

ENH: Extending source-space-based reconstruction

Open
#8,043 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

After #8033, @agramfort had the idea to show how it can be used with data processed with ICA and also help with source space stats. So a couple of ideas:

  1. Use it with ICA somehow (I guess we'd have to get the ICA "operator" matrix to be applied to the forward like a projection matrix?)
  2. Add a way to reconstruct instances to do sensor-space stats on reconstructed data.

Maybe a general inst.reconsruct(info=None, operator=None) that allows you to remap to the same channels undoing the bias of projections (info is None, default) or to some channel positions (info is not None use case) assuming the given operator has been applied to the data (None means "get from info['projs'], non-None could for example be the ICA operator)? It would need to come with a warning in the docs that they should not be source localized, though, since the data will be rank deficient but not have anything in info['projs'] (except maybe EEG avg ref proj).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading issue #8033 and the existing reconstruction, projection, and ICA APIs. Clarify how an inst.reconsruct(info=None, operator=None) entry point would handle info['projs'], ICA operators, channel remapping, and rank-deficient outputs. Done should include both proposed use cases and the documented source-localization warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design, data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.