[mne-python] use spectral_connectivity on a single epoch

Hi all,

Using mne-python, is it possible to use spectral_connectivity on a
single epoch at a time.

I have a single subject and I would like to calculate the Phase-Locking
Value (or similar "connectivity" measure) on single trial basis. As I
understand the output of the spectral_connectivity the returned object
is one value and not one per epoch. Is it possible to get it to return a
value per epoch or does that simply not make any sense to do?

thanks,
mads

hi mads,

just call spectral_connectivity on each epoch.

for k in range(len(epochs)):
    out = spectral_connectivity(epochs[k], ...)
    ....

or something along these lines.

HTH
Alex

hi mads,

just call spectral_connectivity on each epoch.

for k in range(len(epochs)):
    out = spectral_connectivity(epochs[k], ...)
    ....

Arent' these all measures that are defined across epochs??

or something along these lines.

HTH
Alex

> Hi all,
>
> Using mne-python, is it possible to use spectral_connectivity on a
> single epoch at a time.
>
> I have a single subject and I would like to calculate the Phase-Locking
> Value (or similar "connectivity" measure) on single trial basis. As I
> understand the output of the spectral_connectivity the returned object
> is one value and not one per epoch. Is it possible to get it to return a
> value per epoch or does that simply not make any sense to do?
>
> thanks,
> mads
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> Mne_analysis Info Page
>
>
> 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
> MyComplianceReport.com: Compliance and Ethics Reporting . 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.
>
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140808/1e45d7a3/attachment.html

Normally all the connectivity measures are defined across epochs, and look
for consistency of phase across them. For single trial value is one.

You can do connectivity across time however window need be very long in
order to compensate for the bias in the connectivity.

Sheraz