<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Lieneke,<div><br></div><div>I fixed point 1. The code should be available tonight on the ftp-server and on google code.</div><div><br></div><div>Best, </div><div><br></div><div>Jan-Mathijs<br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">jan-mathijs schoffelen <<a href="mailto:jan.schoffelen@donders.ru.nl">jan.schoffelen@donders.ru.nl</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">July 19, 2011 8:50:21 AM GMT+02:00<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Email discussion list for the FieldTrip project <<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [FieldTrip] ft_connectivityanalysis</b><br></span></div><br><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Lieneke,<div><br></div><div>Sorry that your scripts broke. I will look into it.</div><div><br></div><div><div><blockquote type="cite"><div>1. I get the following error: 'Error using ft_selectdata, selection of or averaging across channels in the presence of both label and labelcmb is not possible'. <br><br>-> My output from ft_freqanalysis and input to ft_connectivityanalysis = 'powerandcsd'. Eric didn't have the problem when using 'fourier', but then you don't get the field 'labelcmb' in your output. <br></div></blockquote><div><blockquote type="cite"><div>-> I can't help getting both label and labelcmb from freqanalysis if choosing 'powerandcsd'. If I remove the field 'label' from the structure, the function gives an error missing the field 'label' elsewhere. So I need both fields 'label' and 'labelcmb'. Previously, this problem did not exist. <br><br>Did something change here? This brings me to point 2. <br></div></blockquote></div><div><br></div><div>Is there a particular reason why you want to stick with 'powandcsd'? Using 'fourier' in the output will give you full flexibility later on in your analysis. Admittedly, you don't get a 'labelcmb' in your output, but you can still specify cfg.channelcmb before calling ft_connectivityanalysis. My suspicion is that this will solve your problem. The reason for your bug is that we cleaned up the code a bit (to make it more transparent), and that we had to backward-support a large number of potential ways in which users are used to using the functionality in FieldTrip. Once again, I will try to solve this issue, but I strongly urge you (<b>and the rest of the community</b>) to start using 'fourier' as a method in ft_freqanalysis. Eventually it will make life much easier (for both user and programmer ;o) ). Yet, I can imagine that if you are under time pressure to finish your thesis you don't feel like changing your approach. Anyway, I have written some documentation on this issue here: </div><div><br></div><div><a href="http://fieldtrip.fcdonders.nl/faq/in_what_way_can_frequency_domain_data_be_represented_in_fieldtrip">http://fieldtrip.fcdonders.nl/faq/in_what_way_can_frequency_domain_data_be_represented_in_fieldtrip</a></div><div><br></div><blockquote type="cite"><div>2. I would like to run ft_connectivityanalysis for a selected group of channelpairs. Again, I get the aforementioned error. <br>The same error I get if I run ft_freqdescriptives for a selection of channels (not all channels!, in contrary to my point 1... there I get the error both when I select channels as well as if I say channels = 'all'). Therefore I suspect that the first problem is caused by a bug in ft_connectivityanalysis, not in the more general function ft_selectdata that both ft_freqdescriptives and ft_connectivityanalysis make use of. Does that make sense?<br></div></blockquote><div><br></div><div>Not really. What is the error you get when calling ft_freqdescriptives? As such ft_freqdescriptives shouldn't work on the bivariate metric (i.e. cross spectra), and should not worry about labelcmb. </div><br><blockquote type="cite"><div>3. In addition, I would like to calculate the standard error of my coherence output (if I can get it again at some point :)) using the method 'jackknife' (as recommended by Eric). ft_connectivityanalysis still has the option to use jackknife in its code, it just doesn't do anything with the setting anymore. The same goes for ft_freqdescriptives (but having it in ft_connectivityanalysis would do for me!). <br></div></blockquote><div><br></div><div>Are you sure? As far as I know, jackknifing should still be supported by both functions. It is of course crucial that you retain your single trial estimates in the input data (i.e. calling ft_freqanalysis with cfg.keeptrials='yes').</div><br><blockquote type="cite"><div>I hope the points I've made are a bit clear, otherwise please let me know. It's a serious problem for me not being able to run the coherence analysis, since I'm trying to finish my master thesis within a few weeks from now... So it would be great if somebody could help me! <br><br>Thanks in advance :). <br><br>Best, <br>Lieneke<br></div></blockquote><div><br></div> Best,</div><div><br></div><div>Jan-Mathijs</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dr. J.M. (Jan-Mathijs) Schoffelen </div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: 0031-24-3614793</div></div></span></span>
</div>
<br></div></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dr. J.M. (Jan-Mathijs) Schoffelen </div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div></div></span></div></span></span>
</div>
<br></div></body></html>