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

ITC on continuous data #106

Open
agramfort opened this issue Sep 9, 2022 · 3 comments
Open

ITC on continuous data #106

agramfort opened this issue Sep 9, 2022 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@agramfort
Copy link
Member

I was asked this many times and I had now a few minutes to do a proof of concept.

See:

https://gist.github.com/agramfort/e282cb850a790e74dde39582edf89485

it computes phase synchrony (ITC?) by averaging overtime in a raw object. So it does not average over epochs to look for fixed phase.

hope this will help some.

Disclaimer this is not tested. It's just a 30 mins hack to help a former student...

@turanskt
Copy link

turanskt commented Sep 9, 2022

My bad for the imprecision. By ITC I meant inter-trial coherence, so it's just a time-frequency computation in a short.
The issue is that all time-frequency methods I found (e.g tfr_morlet) take epochs as inputs and not raw objects.
And the issue is that I don't have any STIM channel or event at all to create epochs with.
I tried to create one big epoch of shape (1, nb_channel, timepoints) but I'm not sure at all if it is the way to go.

Concerning the phase synchrony computation that you provided, it was very helpful as it helped me to solve another issue I was facing so thank you !

@agramfort
Copy link
Member Author

inter-trial means then inter-epochs coherence. You cannot get ITC without trials/epoch as the principle to average over epochs/trials to get coherence.

@turanskt
Copy link

Got it !
Thank you for the details.

@adam2392 adam2392 added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants