Skip to content

mne.SourceEstimate.data array #5383

Closed
Closed

Description

@corscheid

Hi, I really really hate to post general questions on GitHub Issues, but I don't know where else to go. Is there an MNE Python forum? I tried to join the mailing list but I don't think it was successful.

My current question is, what exactly is stc.data?

I know that it's a 2D array of vertices x time and that vertices could be voxels. But I'm not sure if the float values in that array are current density, and what are the XYZ coordinates for each of the 8000+ vertices if they really are voxels. If they are not voxels, then what are they? What units are the values found in stc.data?

We're working on processing EEG data using sLORETA method. We would like to move to MNE Python since using LORETA-KEY and EEGLAB is a pretty slow and manual process. What we’re interested in is getting the xyz coordinates and current density data as well as lobe location, just like the sLORETA Viewer shows, in an automated way. Is there any way we can do this in MNE?

Thanks,
Corey

Activity

  1. larsoner commented on Aug 1, 2018

    @larsoner
    Member

    As I mentioned on the mailing list, maybe a good start would be plot_object_sourceestimate.py that talks about:

    1. what .data includes
    2. what .vertices are
    3. how these index a high-res surface
    4. how to get the corresponding coordinates in Freesurfer RAS, MRI RAS, etc.
    5. example of upsampling from these to the high-res surface

    @corscheid would that help? Are there other things that would be good to add?

    Then once this is in, eventually we could expand it to include VolSourceEstimate and finally MixedSourceEstimate.

  2. self-assigned this
    on Aug 1, 2018
  3. corscheid commented on Aug 1, 2018

    @corscheid
    Author

    @larsoner Yes, I think that would be very helpful. I'm not 100% sure what else would be good to add off the top of my head right now, but the more EEG-specific documentation (particularly from raw EEG data to source localization data and plotting) there is, the better, I think. I also spent a good bit of time wondering what a .fif file is, where they are expected to come from, and how all that works, coming from an EEGLAB/ERPLAB/sLORETA Viewer workflow.

    Outside of using the sample data set and following the available MEG tutorials on the website, I'm a little bit lost in trial and error piecing everything together. Our workflow currently includes .cnt files and .set/.fdt and .txt files from EEGLAB and ERPLAB. My curiosity has been how to implement and automate all of these same steps in MNE Python for EEG data of a somewhat large set of subjects.

    Thank you so much for your quick replies and patience!

  4. larsoner commented on Aug 1, 2018

    @larsoner
    Member

    I think there is too much information to cover for it the be appropriate for the FAQ

  5. agramfort commented on Aug 1, 2018

    @agramfort
    SponsorMember
  6. larsoner commented on Aug 1, 2018

    @larsoner
    Member

    My preference would be a plot_object_sourceestimate.py like we have for raw/epochs/evoked, or a plot_background_freesurfer.py. I fear "data structures and containers" is too general / broad.

  7. agramfort commented on Aug 2, 2018

    @agramfort
    SponsorMember

    @TommyClausner I think you have now all the knowledge to explain this.

    can you take a stab at this? while you wait for us to review the other PR...

  8. TommyClausner commented on Aug 2, 2018

    @TommyClausner
    Contributor

    Hey @agramfort I appreciate your optimism ("all the knowledge to explain this") ;)

    What I would do now is:

    • making plot_object_sourceestimate.py (guess this might work)
    • making plot_background_freesurfer.py - I know and used FreeSurfer a bit outside mne, however I have to dive a bit more into how exactly the steps in mne are - or are you really just interested in FreeSurfer and only FreeSurfer (like using "recon-all" and stuff) - and where which relevant data come from? (e.g. surf folder, labels folder, etc)
  9. larsoner commented on Aug 2, 2018

    @larsoner
    Member

    For FS just the parts we use, like high res mesh, decimated mesh, downsampling, upsampling, labels, annotations.

  10. agramfort commented on Aug 3, 2018

    @agramfort
    SponsorMember
  11. removed their assignment
    on Aug 7, 2018
  12. added this to the 0.17 milestone on Aug 7, 2018
  13. corscheid commented on Sep 6, 2018

    @corscheid
    Author

    Thanks everyone for your efforts and replies. My colleague @deepagupta would be happy to reply here in the event of further questions or discussion regarding documentation or related MNE functions or structures we are using.

  14. larsoner commented on Oct 4, 2018

    @larsoner
    Member

    We have a bit of this in master now so I'm moving this to 0.18. @jasmainak if you feel like improving the plot_object_stc tutorial this issue has other concepts in it that should be included

  15. modified the milestones: 0.17, 0.18 on Oct 4, 2018
  16. larsoner commented on May 13, 2019

    @larsoner
    Member

    @drammock is this one taken care of? If not, let's add to the documentation TODO list

  17. drammock commented on May 15, 2019

    @drammock
    Member

    I would say that this is not yet fully resolved. But I'll cross-link it to #5944, add a note to the roadmap there, and close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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