<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear Fieldtrippers,<br>
<br>
Being somewhat new to using fieldtrip I was hoping someone would be able to help me sort out some parcellation and data-handling issues. In short: I'm working with resting state EEG data, recorded with a 64-channel BioSemi system and would like to do some graph
 based analyses on this. The data is 4 minutes (eyes-open, eyes-closed 1-minute epochs) and ideally I would like to split these two 1 minute eyes-closed parts into 30*4s epochs. After this I would like to run a wavelet decomposition for the frequency analysis
 and obtain the adjacency matrix based on weighted phase lag index.<br>
<br>
Thus, my questions are:<br>
1. How to handle parcellating data? Shoud I use a)"toi" in ft_freqanalysis as a sliding window or b) split at trial definition?<br>
If a: how does freqanalysis handle multiple trials? I currently use this:<br>
    cfg.method = 'wavelet';<br>
    cfg.output = 'powandcsd';<br>
    cfg.channel = 1:64;<br>
    cfg.foilim = [0 70];<br>
    cfg.toi = [5 10 15 20 25 30 35 40 45 50 55]<br>
    [freq_data] = ft_freqanalysis(cfg, data_iccleaned) % run over ICA cleaned data<br>
<br>
Which does give me 11 fragments, but I am not sure how the two 1-minute epochs/trials are handled in this or if they are adequately handles in the subsequent ft_connectivityanalysis?<br>
<br>
If b: how can you split trial in different epochs of a certain length and how does ft_freqanalysis handle multiple trials?<br>
<br>
2. How to deal with faulty or noisy channels? If there are some noisy channels, do you remove these? Removing channels does not seem ideal as it would mean having to deal with uneven graphs (graphs with different numbers of nodes). Leaving them in might bias
 the wpli estimation?<br>
<br>
3. Can you set the interval length for ft_freqanalysis (and if so, how)? It currently takes 0.02Hz increments, is that standard?<br>
<br>
4. Is it necessary to tell ft_connectivityanalysis to use mutliple trials/segments? I currently get the message saying it needs more than 1 trial, even though ft_freqanalysis returns an x*x*11 matrix (and I'm assuming the 11 are the windows set for the wavelet
 decomposition). I am just using this:<br>
<br>
    cfg.method = 'wpli';<br>
    wpli_data = ft_connectivityanalysis(cfg, freq_data);<br>
<br>
5. Is it possible to automatically obtain the wpli adjacency matrix per frequency band?<br>
    Is there a fieldtrip function to average over a range of frequencies (and/or timepoints/trils) from the ft_connectivity analysis output?<br>
    Is there a fieldtrip function to convert individal wpli's back to a complete channel*channel matrix as opposed to the 1D vector is seems to return (that lists each individual wpli)?<br>
<br>
Any help would be much appreciated!<br>
<br>
Cheers,<br>
<br>
Richard</div>
</body>
</html>