[FieldTrip] corticomuscular and intermuscular coherence
Julian Keil
julian.keil at gmail.com
Fri Feb 7 10:22:01 CET 2014
Hi Ingmar,
it is definitively possible to cut your long (15 s) trials into smaller segments (i.e. 2 s) using ft_redefinetrial.
The input would look something like this, in case you haven't tried this:
for t = 1:length(in.trials) % loop over trials
cfg=[];
cfg.trials = t; % only take on trial at a time
cfg.length = 2; % length of the new trials
cfg.overlap = .5 % How much of trial n should overlap with trial n+1
out{t} = ft_redefinetrial(cfg,in); % This gives you an output of your 90 trials, cut into smaller "sub trials"
end
This way, you could actually compute the coherence of each of your 90 long trials separately.
However, I'm not sure if this is correct at all or not oversampling your data. If anyone objects, please correct me!
Best,
Julian
Am 07.02.2014 um 00:51 schrieb Vries, I.E.J. de:
> Hi Julian,
>
> Thanks for the reply. Yes I understand coherence of 1 time series is not possible, but I figured if you have a long enough trial and separate this in enough time windows, you could calculate the average coherence (so not time-resolved) over the whole trial. Anyway I have 10 trials per condition so I'll never calculate the coherence for a single trial.
>
> cheers,
> Ingmar
> From: fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] on behalf of Julian Keil [julian.keil at gmail.com]
> Sent: 05 February 2014 14:02
> To: FieldTrip discussion list
> Subject: Re: [FieldTrip] corticomuscular and intermuscular coherence
>
> Dear Ingmar,
>
> I'm not too sure about how exactly coherence is calculated, but be aware that it is not possible to compute single trial coherence. This has been discussed numerous times on this list.
>
> In case you absolutely need a single-trial analysis of connectivity, you might want to look up my recent paper:
>
> Keil, J., Müller, N., Hartmann, T., & Weisz, N. (2013). Prestimulus Beta Power and Phase Synchrony Influence the Sound-Induced Flash Illusion. Cerebral Cortex (New York, NY : 1991), 1–11. doi:10.1093/cercor/bhs409
>
> In this paper, I describe how to use the difference between the phases of two signals compared to the mean phase difference can give an indication of single trial functional connectivity.
>
> Best,
>
> Julian
>
> ********************
> Dr. Julian Keil
>
> AG Multisensorische Integration
> Psychiatrische Universitätsklinik
> der Charité im St. Hedwig-Krankenhaus
> Große Hamburger Straße 5-11, Raum E 307
> 10115 Berlin
>
> Telefon: +49-30-2311-1879
> Fax: +49-30-2311-2209
> http://psy-ccm.charite.de/forschung/bildgebung/ag_multisensorische_integration
>
> Am 05.02.2014 um 13:38 schrieb Vries, I.E.J. de:
>
>> p.s.
>>
>> And if this is indeed the case, is there a way to change these settings, e.g. calculate the coherence for each trial separately?
>>
>> Greetings
>>
>> From: Vries, I.E.J. de
>> Sent: 05 February 2014 13:29
>> To: fieldtrip at science.ru.nl
>> Subject: corticomuscular and intermuscular coherence
>>
>> Dear Fieldtrippers,
>>
>> I have a small question. When I run a ft_connectivityanalysis with coherence as method on a data set of 90 trials of each 15 seconds, the command window gives the output text that coherence is averaged over rpt (replicates). Besides that, for each trial of 15 seconds, 149 tapers are used.
>> My question, over which parts is the coherence calculated and then averaged. It seems to me now that first the coherence is calculated over all of the 149 * 90 = 13410 epochs, and then averaged over all of these. Is this the order that ft_connectivity analysis applies? I tried to look it up in the code but got a bit lost there with all the variable names etc...
>>
>> Thanks in advance,
>> Greetings,
>> Ingmar
>> _______________________________________________
>> fieldtrip mailing list
>> fieldtrip at donders.ru.nl
>> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140207/5815d1d4/attachment-0002.html>
More information about the fieldtrip
mailing list