Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gain matrix workflow #35

Open
maedoc opened this issue Mar 1, 2017 · 0 comments
Open

Gain matrix workflow #35

maedoc opened this issue Mar 1, 2017 · 0 comments
Assignees

Comments

@maedoc
Copy link
Member

maedoc commented Mar 1, 2017

Gain matrices map source space (neural mass state variables) to sensor space (MEG, EEG and sEEG recordings). They are required for simulating MEG, EEG and sEEG; they are also required for fitting data with those modalities. While most software assumes one single gain matrix, in cases where we have multiple source spaces and sensors spaces (cortical + subcortical; MEG & EEG), then we are computing M * N gain matrices.

Our current scripts on these topics don't work, but they outline the necessary steps, using the OpenMEEG command line utilities. OpenMEEG works primarily with text files for describing head geometry, interface conductance, source geometry & sensor geometry, and MATLAB format data files.

We can certainly format all our data to such files, but note that we want to work with corresponding time series data: we should consider using the MNE-Python library for this, as MNE data structures coordinate time series data with geometry information about source and sensor spaces (though MNE's use of OpenMEEG needs to be built). In general, for any sort of time series we have, it'd be good to build on MNE instead of recoding (badly) their functionality.

Our workflow looks like

  • loading time series datasets
  • extracting geometry information
  • aligning with T1 coord sys (has to be done manually, but MNE has some visual tools for this)
  • building the head, sensor, source head models
  • inverting head model
  • computing gain matrix per (source space, sensor space) pair
  • saving for later use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant