[Mne_analysis] Extracting latencies from source estimates
Lyam Bailey
Lyam.Bailey at dal.ca
Fri May 5 08:01:24 EDT 2017
Hi Andy
Thanks for your reply. This looks perfect for my purposes!
Kind regards
Lyam
---------------------------------------------------------
Lyam Bailey, BSc.
Graduate Student
Department of Psychology & Neuroscience
Dalhousie University
________________________________
From: mne_analysis-bounces at nmr.mgh.harvard.edu <mne_analysis-bounces at nmr.mgh.harvard.edu> on behalf of Andrew R. Dykstra <andrew.dykstra at uni-heidelberg.de>
Sent: Friday, May 5, 2017 10:28:49 AM
To: Discussion and support forum for the users of MNE Software
Subject: Re: [Mne_analysis] Extracting latencies from source estimates
Hi Lyam,
You could do something like:
indcs = stc.data >= 0.5*np.max(stc.data)
first_time = stc.times(indcs[0])
A real Pythonista might have a cleaner way of accomplishing the same thing.
HTH,
Andy
On 2017-05-04 08:52 PM, Lyam Bailey wrote:
Dear MNE users,
When dealing with MEG source estimates, is there a way to extract the latency of a user-specified amplitude? I know it's possible to extract the position and latency of the peak amplitude with mne.get_peak, however I'm interested in non-peak amplitudes (for example, 50% of the peak value)
Thanks for any help in advance!
---------------------------------------------------------
Lyam Bailey, BSc.
Graduate Student
Department of Psychology & Neuroscience
Dalhousie University
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu<mailto: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/20170505/5c37291d/attachment.html
More information about the Mne_analysis
mailing list