<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Fanny,
<div class=""><br class="">
</div>
<div class="">ft_connectivityanalysis fails, because the parcellation step creates a data structure that ft_connectivityanalysis did not expect. The reason for this is that ft_connectivityanalysis has not been updated for a while to accommodate parcellated
 data more smoothly. The ft_sourceparcellate function is ‘younger’ than ft_connectivityanalysis, and with the limited capacity of the team of people that regularly contribute to keep the whole codebase up-to-date, your particular use case has not made it into
 the focus of attention.</div>
<div class=""> </div>
<div class="">This being said, I think that in the code you pasted into the e-mail it is problematic to apply ft_math, and compute a relative measure before computing the connectivity. This is mathematically wrong. If anything, you’d want to compute the connectivity
 for the active and baseline conditions separately, and compare this (but note that a fair interpretation of this comparison is not easy, as has been discussed often on this list, and in the literature). </div>
<div class=""><br class="">
</div>
<div class="">Now, for the current problem at hand, I see 2 potential solutions, which should be both considered, and ideally both be implemented (if only to compare the outcome of both implementations):</div>
<div class=""><br class="">
</div>
<div class="">1) you and your team find out a way to ’trick’ ft_connectivityanalysis into accepting parcellated data, which includes a ‘mom’ field. Ideally this will be contributed as a clean improvement to the relevant code (mainly the bookkeeping that occurs
 in ft_connecitivityanalysis before it passes on some data to the lower-level code that does the actual connectivity computation), and submitted as  a Pull Request to the fieldtrip github repository. As a side note, you’d need to think about the 3-dimensions
 of the parcels’ data, which seem to be a consequence of the orientation unconstrained analysis that you performed. As another side note, you need to think about whether it is appropriate to used the volumetric grid/atlas, where the parcellation step for spatially
 extended parcels will probably weight the deeper locations much more heavily than the more superficial ones (if I recall correctly the default way in which the dipoles are combined is by averaging). This is a well-known consequence of the depth bias of the
 beamformer, but probably not ideal.</div>
<div class=""><br class="">
</div>
<div class="">2) you try and implement the analysis pipeline to use ft_virtualchannel to get to the parcels (rather than ft_sourceparcellate). This does not take away the issue of the depth bias, but it will lead to a parcel-based data representation that causes
 fewer problems in ft_connectivityanalysis. Also ft_virtualchannel allows for some more exotic ways to combine data across dipoles for a given parcel. Once you have figured out to do this (it could very well be that there’s already some documentation to be
 found about this), then it would be great if you and your team could add to this documentation (or to write a new piece of documentation). This can be directly added as a PR to the github repo of the fieldtrip website (which is on
<a href="https://github.com/fieldtrip/website" class="">https://github.com/fieldtrip/website</a>).</div>
<div class=""><br class="">
</div>
<div class="">Good luck and best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 18 Aug 2022, at 12:15, f.quandt--- via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Dear Community,<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">I am working on a MEG dataset and would like to calculate task-related whole-brain connectivity in one specific frequency band. As I am running into memory issues, I would like to calculate the imaginary coherence on parcellated
 data (aal atlas). However, I am having trouble doing so, as after the parcellation the data structure/dimord is changed and ft_connectivityanalysis is not working anymore.<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Does anyone have any suggestions? I was working along the tutorial “ Whole brain connectivity and network analysis” . Your help is much appreciated!<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Many thanks,<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Fanny<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Here is the code I am using (Fieldtrip 20220216, macOs, Matlab R2021b) :<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">%% interpolate template sourcemodel and atlas<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">load(fullfile(templatedir,<span class="Apple-converted-space"> </span><span style="color: rgb(170, 4, 249);" class="">'standard_sourcemodel3d8mm'</span>));<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">atlas = ft_read_atlas(fullfile(templatedir,<span class="Apple-converted-space"> </span><span style="color: rgb(170, 4, 249);" class="">'ROI_MNI_V4.nii'</span>));<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">atlas = ft_convert_units(atlas,<span style="color: rgb(170, 4, 249);" class="">'mm'</span>);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">sourcemodel = ft_convert_units(sourcemodel,<span style="color: rgb(170, 4, 249);" class="">'mm'</span>);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg = [];<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.interpmethod    =<span class="Apple-converted-space"> </span><span style="color: rgb(170, 4, 249);" class="">'nearest'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.parameter       =<span class="Apple-converted-space"> </span><span style="color: rgb(170, 4, 249);" class="">'tissue'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">sourceatlas = ft_sourceinterpolate(cfg, atlas, sourcemodel);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">sourceatlas.pos=sourcemodel.pos;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">%% frequency analysis of sensor level timeseries data<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg=[];<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.method=<span style="color: rgb(170, 4, 249);" class="">'mtmfft'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.output=<span style="color: rgb(170, 4, 249);" class="">'fourier'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.keeptrials=<span style="color: rgb(170, 4, 249);" class="">'yes'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.tapsmofrq=tapsmofreq;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.foi=foi;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.polyremoval=1;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">freq_all=ft_freqanalysis(cfg,data_all);<span class="Apple-converted-space"> </span><span style="color: rgb(2, 128, 9);" class="">% for common filter</span><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">freq=ft_freqanalysis(cfg,data_act); % activation<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">freqBase=ft_freqanalysis(cfg,data_base);% baseline<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">%% PPC<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo; color: rgb(2, 128, 9);" class="">% calculate common filter</span><span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg=[];<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.frequency=freq.freq;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.method=<span style="color: rgb(170, 4, 249);" class="">'pcc'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.sourcemodel=leadfield;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.elec = freq_all.grad;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.headmodel=headmodel;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.rawtrials =<span class="Apple-converted-space"> </span><span style="color: rgb(170, 4, 249);" class="">'yes'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.keeptrials =<span class="Apple-converted-space"> </span><span style="color: rgb(170, 4, 249);" class="">'yes'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.pcc.lambda=<span style="color: rgb(170, 4, 249);" class="">'10%'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.pcc.projectnoise=<span style="color: rgb(170, 4, 249);" class="">'yes'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.pcc.keepfilter=<span style="color: rgb(170, 4, 249);" class="">'yes'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">source_all=ft_sourceanalysis(cfg,freq_all);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo; color: rgb(2, 128, 9);" class="">% apply filter</span><span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.sourcemodel.filter = source_all.avg.filter;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">source  = ft_sourceanalysis(cfg, freq);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">sourceBase = ft_sourceanalysis(cfg, freqBase);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg=[];<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">source=ft_sourcedescriptives(cfg,source);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">sourceBase=ft_sourcedescriptives(cfg,sourceBase);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">% task related data<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg = [];<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.parameter =<span class="Apple-converted-space"> </span><span style="color: rgb(170, 4, 249);" class="">'avg.mom'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.operation =<span class="Apple-converted-space"> </span><span style="color: rgb(170, 4, 249);" class="">'((x1-x2)./x2)'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">sourceRel=ft_math(cfg,source,sourceBase);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">% parcellation<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">sourceRel.pos=sourcemodel.pos;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">sourceRel.dim=sourcemodel.dim;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg=[];<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.method=<span style="color: rgb(170, 4, 249);" class="">'mean'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">cfg.parameter=<span style="color: rgb(170, 4, 249);" class="">'mom'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">parc=ft_sourceparcellate(cfg,sourceRel,sourceatlas);<span class="Apple-converted-space"> </span><span style="color: rgb(2, 128, 9);" class="">% also does not work with source_all</span><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">sourceRel =<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">         freq: 75.8735<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">          dim: [20 25 22]<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">          pos: [11000×3 double]<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">        label: {272×1 cell}<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">          mom: {11000×1 cell}<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">       inside: [11000×1 logical]<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">    trialinfo: [235×10 double]<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">          cfg: [1×1 struct]<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">parc =<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">             freq: 75.8735<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">        cumtapcnt: [470×1 double]<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">            label: {1×116 cell}<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">              mom: [116×3×5170 double]<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">        momdimord: 'chan_ori_rpttap'<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">    brainordinate: [1×1 struct]<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">              cfg: [1×1 struct]<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">% Connectivity Analysis<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">        cfg=[];<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">        cfg.method=<span style="color: rgb(170, 4, 249);" class="">'coh'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">        cfg.complex=<span style="color: rgb(170, 4, 249);" class="">'absimag'</span>;<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">        sourceConn=ft_connectivityanalysis(cfg,parc);<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">Error using getdimord (line 42)<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">field "crsspctrm" not present in data<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">Error in ft_connectivityanalysis (line 634)<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 10pt; font-family: Menlo;" class="">    data.dimord = ['rpt_' getdimord(data, inparam)];<o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
</div>
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<hr size="1" style="color: rgb(153, 153, 153);" class="">
<p style="font-size: x-small; color: rgb(153, 153, 153);" class="">Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Rechts; Gerichtsstand: Hamburg | <a href="https://urldefense.com/v3/__http://www.uke.de/__;!!HJOPV4FYYWzcc1jazlU!6dQ7J_14yKC6q7Pcrft1stuGxVUkPYrk6ZdKxDRQh4AEOPQynM4kNVUsa4Pd44txDg0pcwUnYsZ_0CX3ndI75theYvPyjldn4P5x-Q$" class="">www.uke.de</a><br class="">
Vorstandsmitglieder: Prof. Dr. Burkhard Göke (Vorsitzender), Joachim Prölß, Prof. Dr. Blanche Schwappach-Pignataro, Marya Verdel</p>
<hr size="1" style="color: rgb(153, 153, 153);" class="">
<p style="font-size: x-small; color: rgb(153, 153, 153);" class="">SAVE PAPER - THINK BEFORE PRINTING</p>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip
 mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!6dQ7J_14yKC6q7Pcrft1stuGxVUkPYrk6ZdKxDRQh4AEOPQynM4kNVUsa4Pd44txDg0pcwUnYsZ_0CX3ndI75theYvPyjlc7LPKSLg$" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!6dQ7J_14yKC6q7Pcrft1stuGxVUkPYrk6ZdKxDRQh4AEOPQynM4kNVUsa4Pd44txDg0pcwUnYsZ_0CX3ndI75theYvPyjlc7LPKSLg$</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><span class="Apple-converted-space"> </span> </span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>