<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.E-mailStlus20
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Hi all,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Visualising connectivity in FieldTrip has been a lacking feature for me, as well.<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>In <a href="https://github.com/tiborauer/automaticanalysis/tree/meeg_connectivity">my developmental brach of aa</a>, I currently use a “modded” version of BrainNetViewer, which allows me to create some nice visualisations (see attached). <o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Kind regards,<o:p></o:p></span></p><div><p class=MsoNormal>Tibor <span lang=HU><o:p></o:p></span></p><p class=MsoNormal> <span lang=HU><o:p></o:p></span></p><p class=MsoNormal><b><span style='color:#222A35'>Auer, Tibor M.D. Ph.D.</span></b><span lang=HU><o:p></o:p></span></p><p class=MsoNormal><b><span style='color:#0066FF'>Research Fellow</span></b><span lang=HU><o:p></o:p></span></p><p class=MsoNormal><b><span style='color:#0066FF'>School of Psychology, Faculty of Health and Medical Sciences</span></b><span lang=HU><o:p></o:p></span></p><p class=MsoNormal>University of Surrey, Guildford GU2 7XH<span lang=HU><o:p></o:p></span></p><p class=MsoNormal><a href="mailto:T.Auer@surrey.ac.uk"><span style='color:#0563C1'>T.Auer@surrey.ac.uk</span></a><span lang=HU><o:p></o:p></span></p><p class=MsoNormal><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FTiborAuer&data=04%7C01%7Ct.auer%40surrey.ac.uk%7C5f32dba325f5422f5c5a08d8becc029f%7C6b902693107440aa9e21d89446a2ebb5%7C0%7C0%7C637469131016806177%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wkpejqTmmo%2Fe4JA9QIaA6Z3%2BzipbFY%2FCEmRXC9UvKJs%3D&reserved=0"><span style='color:#0563C1'>@TiborAuer</span></a><span lang=HU><o:p></o:p></span></p></div><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=HU>Feladó:</span></b><span lang=HU> fieldtrip <fieldtrip-bounces@science.ru.nl> <b>E személy nevében: </b>Schoffelen, J.M. (Jan Mathijs) via fieldtrip<br><b>Küldve:</b> 30 August 2021 11:18<br><b>Címzett:</b> FieldTrip discussion list <fieldtrip@science.ru.nl><br><b>Másolatot kap:</b> Schoffelen, J.M. (Jan Mathijs) <janmathijs.schoffelen@donders.ru.nl><br><b>Tárgy:</b> Re: [FieldTrip] Fieldtrip connectivity visualization<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Philip, <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I think your particular use case hit a snag in the code. I will address this in a fix soon, but for you in order to get what you want (i.e. a line plot as function of frequency), you’d need to run ft_freqanalysis with ‘mtmfft’ as method, and a pre-selected latency window (i.e. use ft_selectdata on the longer data segments prior to passing the data to ft_freqanalysis and ft_connectivityanalysis).<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Best wishes,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Jan-Mathijs<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><div><div><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>Begin forwarded message:<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>Hi Dr. Schoffelen, <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>We have some interesting results from the MOUS dataset and would like to continue by looking at connectivity between some ROIs that we have. In particular, we're interested in using one ROI as a seed and looking how connectivity with other ROIs changes over time after the stimulus. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>As a first step, I'm attempting to analyze connectivity between sensors, but I seem to be having some trouble with the last visualization step, which may just indicate a problem with an earlier step. For a single subject, I first ran a time-frequency analysis with the following settings:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>cfg_subTFR = [];<br>cfg_subTFR.output = 'powandcsd';<br>cfg_subTFR.channel = 'MEG';<br>cfg_subTFR.method = 'mtmconvol';<br>cfg_subTFR.taper = 'hanning';<br>cfg_subTFR.foi = 2:1:30;<br>cfg_subTFR.t_ftimwin = 4./cfg_subTFR.foi; % 4 cycles per time window<br>cfg_subTFR.toi = -0.5:0.05:0.6;<br>TFR_firstWords = ft_freqanalysis(cfg_subTFR, data_clean);<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Results seemed to look logical, so I then ran coherence using ft_connectivityanalysis. The output includes a crsspctrm of size 36585x29x23 , with 36585 corresponding to the pairs of sensors, 29 being the frequencies, and 23 being the timepoints of interest. Finally, to visualize the results, I selected a pair of sensors and ran ft_connectivityplot. However, instead of getting the lineplots shown in the tutorial (<a href="https://urldefense.com/v3/__https:/www.fieldtriptoolbox.org/tutorial/connectivity/__;!!HJOPV4FYYWzcc1jazlU!ouVC5PWLvy92UOJiA59mTe8m8TQ0HRmiP9rScPYJFDg7-b0k2ctLZW70YHF0VyMMcwt3vfQ$">https://www.fieldtriptoolbox.org/tutorial/connectivity/</a>), I seem to be getting a heatmap, similar to a visualization of TFR (attached below). Even if I limit it to one frequency time bin, I seem to be getting this view. Is there a problem with how my data/results are structured prior to visualizing? Please let me know. Thank you!<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Best,<o:p></o:p></p></div><div><p class=MsoNormal>Philip<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><image.png><o:p></o:p></p></div></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div><p class=MsoNormal>_______________________________________________<br>fieldtrip mailing list<br><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br><a href="https://urldefense.com/v3/__https:/doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!pLJZDnOthOxEhNskqb_S98gEqf4TiZKyosSt6i0hW7CHlZAh2M7zmMmFoRiBmhAmnFbOBKhzfRfvNyc$">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!pLJZDnOthOxEhNskqb_S98gEqf4TiZKyosSt6i0hW7CHlZAh2M7zmMmFoRiBmhAmnFbOBKhzfRfvNyc$</a> <o:p></o:p></p></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>