[FieldTrip] Cfg.latency in ft_sourceplot not working?
Emilie Caspar
ecaspar at ulb.ac.be
Sun Feb 6 09:49:39 CET 2022
Dear all,
Yes the data were as expected but indeed as the covariance matrix was computed on the full data (-.2 to 1.2) before the time lock analysis and that we wanted to plot the results of the source analysis on only a part of these data, it did not work correctly. I have re-run the data entirely by selecting the appropriate time before the ft_timelockanalysis and now it works perfectly.
Thank you again,
Emilie
---------------------------------------------
Emilie CASPAR
Associate Professor
Department of Experimental Psychology, Ghent University
office: Henri Dunantlaan, 2 - Floor 2, Room 94
lab’s website: https://moralsocialbrain.com/ <https://moralsocialbrain.com/>
personal website: https://emiliecaspar.home.blog/ <https://emiliecaspar.home.blog/>
Université libre de Bruxelles (office & contact): DB10.138 / +32 2 650 32 95
> Le 4 févr. 2022 à 09:50, Stephen Whitmarsh <stephen.whitmarsh at gmail.com> a écrit :
>
> Dear Emilie,
>
> Given a high a priori probability that the plotting function is okay, I would first check whether the data (sourceIntpl_Victim.pow?) is as expected, e.g. by checking if the dimensions are as expected, and plotting a single voxel over time using just MATLAB's plot function, or just looking at the numbers and checking if they change over time.
>
> Cheers,
> Stephen
>
>
>
>
> On Fri, 4 Feb 2022 at 09:07, Emilie Caspar <ecaspar at ulb.ac.be <mailto:ecaspar at ulb.ac.be>> wrote:
> Dear Stephen,
>
> Yes this is what I indicated, the data contains a .time structure, which range from -.2 to 1.2 ms.
>
> Best,
>
> Emilie
>
> <Capture d’écran 2022-02-04 à 09.06.59.png>
> ---------------------------------------------
> Emilie CASPAR
>
> Associate Professor
>
> Department of Experimental Psychology, Ghent University
> office: Henri Dunantlaan, 2 - Floor 2, Room 94
>
> lab’s website: https://moralsocialbrain.com/ <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmoralsocialbrain.com%2F&data=04%7C01%7Cemilie.caspar%40ulb.be%7Cad0213d795a743af84bd08d9e7bb7236%7C30a5145e75bd4212bb028ff9c0ea4ae9%7C0%7C0%7C637795614524249986%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=WciOdaUb4hZKF6zZqGdPkBIoRXfc4%2BK%2B%2BiIzcY5p5d8%3D&reserved=0>
> personal website: https://emiliecaspar.home.blog/ <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Femiliecaspar.home.blog%2F&data=04%7C01%7Cemilie.caspar%40ulb.be%7Cad0213d795a743af84bd08d9e7bb7236%7C30a5145e75bd4212bb028ff9c0ea4ae9%7C0%7C0%7C637795614524249986%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=boHP3FAFEKnKc5lpQb0Y%2BmHPDeV7zQRXT%2BDJOmoiQTU%3D&reserved=0>
>
> Université libre de Bruxelles (office & contact): DB10.138 / +32 2 650 32 95
>
>
>> Le 4 févr. 2022 à 07:54, Stephen Whitmarsh <stephen.whitmarsh at gmail.com <mailto:stephen.whitmarsh at gmail.com>> a écrit :
>>
>> Hi Emilie,
>>
>> I would first check if the data structure has a time dimension to begin with.
>>
>> Best,
>> Stephen
>>
>> On Thu, 3 Feb 2022 at 19:44, Emilie Caspar via fieldtrip <fieldtrip at science.ru.nl <mailto:fieldtrip at science.ru.nl>> wrote:
>> Dear fieldrippers,
>>
>> I am using ft_sourceplot to plot the results of my interpolated data. The data contains a .time, which range from -.2 to 1.2 ms
>>
>> I would like to plot only some specific segments, such as .3 to .8. However, whatever I indicate in the cfg.latency, the plots do not change at all (see two pictures attached), probably suggesting that the cfg.latency is somehow not taken into account.
>>
>> cfg = [];
>> cfg.method = 'ortho';
>> cfg.atlas = atlas;
>> cfg.funparameter = 'pow';
>> cfg.inputcoord = 'mni';
>> cfg.maskparameter = cfg.funparameter;
>> cfg.funcolormap = 'jet';
>> % cfg.projmethod = 'nearest';
>> cfg.funcolorlim = [0 0.2];
>> cfg.opacitylim = [0.1 0.2];
>> % cfg.opacitymap = 'rampup';
>> cfg.latency = [0.3 0.8];
>> cfg.avgovertime = 'yes';
>> ft_sourceplot(cfg,sourceIntpl_Victim);
>>
>> Would someone have an idea about the problem?
>>
>> Thank you in advance!
>>
>> Emilie
>>
>> <-200to0.png><300to800.png>
>>
>>
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Cemilie.caspar%40ulb.be%7Cad0213d795a743af84bd08d9e7bb7236%7C30a5145e75bd4212bb028ff9c0ea4ae9%7C0%7C0%7C637795614524249986%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=L2P0sqaEOhaCzfjUJUWE8fDvGbeZMMOHPea6uU1AWmY%3D&reserved=0>
>> https://doi.org/10.1371/journal.pcbi.1002202 <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=04%7C01%7Cemilie.caspar%40ulb.be%7Cad0213d795a743af84bd08d9e7bb7236%7C30a5145e75bd4212bb028ff9c0ea4ae9%7C0%7C0%7C637795614524249986%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=GuIMFMQGzxtmfowkzljaWDIQxe78PCCLqN7zP8Ht1wI%3D&reserved=0>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20220206/8c2d34fe/attachment.htm>
More information about the fieldtrip
mailing list