[Mne_analysis] help

Alberto G Vilanova5 at hotmail.com
Wed Aug 1 05:53:32 EDT 2018
Search archives:

        External Email - Use Caution        

help


________________________________
De: mne_analysis-bounces at nmr.mgh.harvard.edu <mne_analysis-bounces at nmr.mgh.harvard.edu> en nombre de mne_analysis-request at nmr.mgh.harvard.edu <mne_analysis-request at nmr.mgh.harvard.edu>
Enviado: miércoles, 1 de agosto de 2018 2:37
Para: mne_analysis at nmr.mgh.harvard.edu
Asunto: Mne_analysis Digest, Vol 126, Issue 24

Send Mne_analysis mailing list submissions to
        mne_analysis at nmr.mgh.harvard.edu

To subscribe or unsubscribe via the World Wide Web, visit
        https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
Mne_analysis Info Page - Harvard University<https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis>
mail.nmr.mgh.harvard.edu
Mne_analysis -- Discussion and support forum for the users of MNE Software About Mne_analysis



or, via email, send a message with subject or body 'help' to
        mne_analysis-request at nmr.mgh.harvard.edu

You can reach the person managing the list at
        mne_analysis-owner at nmr.mgh.harvard.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Mne_analysis digest..."


Today's Topics:

   1. Manipulating Channels on Raw Preloaded to Workfile
      (Rockhill, Alexander P.)
   2. Re: Manipulating Channels on Raw Preloaded to     Workfile
      (Eric Larson)
   3. mne.SourceEstimate.data array (Corey Scheideman)
   4. Re: mne.SourceEstimate.data array (Eric Larson)


----------------------------------------------------------------------

Message: 1
Date: Tue, 31 Jul 2018 16:34:12 +0000
From: "Rockhill, Alexander P." <AROCKHILL at mgh.harvard.edu>
Subject: [Mne_analysis] Manipulating Channels on Raw Preloaded to
        Workfile
To: "mne_analysis at nmr.mgh.harvard.edu"
        <mne_analysis at nmr.mgh.harvard.edu>
Message-ID:
        <8116B7BF4F63514F93CDD2BB034BA0A613DE4C36 at PHSX10MB4.partners.org>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

    I have a very large Raw file (several hours sampled at 25 kHz) and the analysis depends on not decimating the data. I have been trying to use a memory-mapped file but when I add channels, I get the error:

>>> raw.add_channels([Cz], force_update_info=False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/autofs/space/karima_001/users/alex/software/anaconda2/lib/python2.7/site-packages/mne/channels/channels.py", line 877, in add_channels
    data = np.concatenate(data, axis=con_axis)
MemoryError

    If anyone has helpful information about a way around this, I would appreciate it greatly.

Thanks,

Alex Rockhill

Translational NeuroEngineering Laboratory
Division of Neurotherapeutics, Department of Psychiatry
Massachusetts General Hospital, Martinos Center
149 13th St Charlestown #2301, Boston, MA 02129
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180731/3bbdddc3/attachment-0001.html

------------------------------

Message: 2
Date: Tue, 31 Jul 2018 12:42:42 -0400
From: Eric Larson <larson.eric.d at gmail.com>
Subject: Re: [Mne_analysis] Manipulating Channels on Raw Preloaded to
        Workfile
To: Discussion and support forum for the users of MNE Software
        <mne_analysis at nmr.mgh.harvard.edu>
Message-ID:
        <CAGu2niXhHDiiZ_G+mU=Vy+LDch1VA5nL_cYjTi4xF7k_h_FSTw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

        External Email - Use Caution

We probably do not handle preload-as-str properly. Can you open an MNE
issue about this on GitHub?

Eric


On Tue, Jul 31, 2018 at 12:34 PM Rockhill, Alexander P. <
AROCKHILL at mgh.harvard.edu> wrote:

> Hi all,
>
>     I have a very large Raw file (several hours sampled at 25 kHz) and the
> analysis depends on not decimating the data. I have been trying to use a
> memory-mapped file but when I add channels, I get the error:
>
> >>> raw.add_channels([Cz], force_update_info=False)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/autofs/space/karima_001/users/alex/software/anaconda2/lib/python2.7/site-packages/mne/channels/channels.py",
> line 877, in add_channels
>     data = np.concatenate(data, axis=con_axis)
> MemoryError
>
>     If anyone has helpful information about a way around this, I would
> appreciate it greatly.
>
> Thanks,
>
> Alex Rockhill
>
> Translational NeuroEngineering Laboratory
> Division of Neurotherapeutics, Department of Psychiatry
> Massachusetts General Hospital, Martinos Center
> 149 13th St Charlestown #2301, Boston, MA 02129
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180731/489d2ac1/attachment-0001.html

------------------------------

Message: 3
Date: Tue, 31 Jul 2018 12:23:04 -0400
From: Corey Scheideman <coreys1 at umbc.edu>
Subject: [Mne_analysis] mne.SourceEstimate.data array
To: mne_analysis at nmr.mgh.harvard.edu
Message-ID: <0B0354FB-803B-41AC-88FF-13E28F757389 at umbc.edu>
Content-Type: text/plain; charset="utf-8"

        External Email - Use Caution

Hi,

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



------------------------------

Message: 4
Date: Tue, 31 Jul 2018 20:37:09 -0400
From: Eric Larson <larson.eric.d at gmail.com>
Subject: Re: [Mne_analysis] mne.SourceEstimate.data array
To: Discussion and support forum for the users of MNE Software
        <mne_analysis at nmr.mgh.harvard.edu>
Message-ID:
        <CAGu2niWYxBjVj638On+n4K43LXNpehYQi+JMyM52LwBztXrzGQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

        External Email - Use Caution

>
> if the float values in that array are current density


They are currents (nAm) for method='MNE' and noise-normalized versions of
these for other methods.


> what are the XYZ coordinates for each of the 8000+ vertices


The `stc.vertices[0]` are the left-hemisphere vertex numbers of the
high-resolution Freesurfer surfaces for the subject.


> 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?
>

I have not used the sLORETA viewer so I can't comment on that, but yes it
should be possible to get these values. You can load the surfaces with
`rr_lh = mne.read_surface('subjects_dir/subject/surf/lh.white')[0]`, then
your locations are `rr_lh[stc.vertices[0]]`. For the right hemisphere, load
`rh.white` and use `rr_rh[stc.vertices[1]]`.

I see that you have opened an MNE-Python issue about this, too. Perhaps we
should discuss there how to add a tutorial for the Freesurfer surfaces /
source-space information to make it clear how to get these values.

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180731/bface330/attachment.html

------------------------------

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis

End of Mne_analysis Digest, Vol 126, Issue 24
*********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180801/5fa927e5/attachment-0001.html 


More information about the Mne_analysis mailing list