[FieldTrip] ICA inspection: Error using ft_icabrowser.m

SILVA PEREIRA, SILVANA silvana.silva at upf.edu
Tue Nov 6 16:01:27 CET 2018


Ok, I finally found a solution, just modifying line 53 in ft_icabrowser
from:

lay = ft_prepare_layout(cfglay, comp);

to:

lay = ft_prepare_layout(cfglay);



since the layout somehow gets modified if I add the ica data structure
(comp) in the input parameters. Now it works!


Best regards,

Silvana


El lun., 5 nov. 2018 a las 18:44, Aykut Eken (<ekenaykut at gmail.com>)
escribió:

> Hi Silvana,
>
> Can you check the match_str function?
>
> [seldat, sellay] = match_str(label, cfg.layout.label);
> if isempty(seldat)
>   ft_error('labels in data and labels in layout do not match');
> end
>
> Best
>
> Aykut
>
> On 5 Nov 2018, at 18:23, SILVA PEREIRA, SILVANA <silvana.silva at upf.edu>
> wrote:
>
>
> Hi Diego,
>
> Your suggestion works fine for ft_databrowser, but not for ft_icabrowser!
>
> best regards,
> Silvana
>
>
> El lun., 5 nov. 2018 a las 16:58, Diego Lozano-Soldevilla (<
> dlozanosoldevilla at gmail.com>) escribió:
>
>> Hi Silvana,
>> Could you try the component viewmode option?
>>
>> cfg          = [];
>> cfg.layout   = 'acticap-64ch-standard';
>> cfg.viewmode = 'component'; % Mode specifically suited to browse through ICA data
>> ft_databrowser(cfg, comp);
>>
>> Best,
>> Diego
>>
>>
>> On Mon, Nov 5, 2018, 16:38 SILVA PEREIRA, SILVANA <silvana.silva at upf.edu
>> wrote:
>>
>>> Dear all,
>>>
>>> I'm trying to use the funtion ft_icabrowser.m, but I get the following
>>> error message:
>>>
>>> Error using topoplot_common (line 523)
>>> labels in data and labels in layout do not match
>>>
>>> Error in ft_topoplotIC (line 184)
>>>   [cfg] = topoplot_common(cfg, comp);
>>>
>>> Error in ft_icabrowser (line 151)
>>>         ft_topoplotIC(cfgtopo, comp);
>>>
>>> I understand that the error is due to a mismatch between the labels of
>>> the cfg struct and the layout I'm using. I modified the entries of the
>>> struct in acticap-64ch-standard2.mat, where I removed four of the channels,
>>> since we have in addition RM, LM, Heog and Veog. Adding these four labels
>>> to the original label list does not solve the problem. Any idea to work
>>> around this issue?
>>>
>>> Thank you!
>>> Silvana
>>>
>>>
>>> *Silvana Silva Pereira*
>>> /Postdoctoral Researcher/
>>> Center for Brain and Cognition
>>> <http://cbc.upf.edu/cbc.upf.edu/index.html>
>>> [image: Universitat Pompeu Fabra, Barcelona]
>>> _______________________________________________
>>> fieldtrip mailing list
>>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>>> https://doi.org/10.1371/journal.pcbi.1002202
>>>
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> https://doi.org/10.1371/journal.pcbi.1002202
>>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20181106/296e9501/attachment-0001.html>


More information about the fieldtrip mailing list