[FieldTrip] ICA inspection: Error using ft_icabrowser.m

Aykut Eken ekenaykut at gmail.com
Mon Nov 5 18:41:35 CET 2018


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 <mailto: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 <mailto: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>
> 
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip <https://mailman.science.ru.nl/mailman/listinfo/fieldtrip>
> https://doi.org/10.1371/journal.pcbi.1002202 <https://doi.org/10.1371/journal.pcbi.1002202>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip <https://mailman.science.ru.nl/mailman/listinfo/fieldtrip>
> https://doi.org/10.1371/journal.pcbi.1002202 <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/20181105/68c078ab/attachment-0001.html>


More information about the fieldtrip mailing list