Back to the main page.
Bug 2553 - no sampleinfo field after applying ft_componentanalysis
| Status | CLOSED WORKSFORME |
| Reported | 2014-04-30 16:53:00 +0200 |
| Modified | 2019-08-10 12:28:44 +0200 |
| Product: | FieldTrip |
| Component: | preproc |
| Version: | unspecified |
| Hardware: | PC |
| Operating System: | Windows |
| Importance: | P5 normal |
| Assigned to: | Eelke Spaak |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
- 2014-04-30 16:53:17 +0200
While doing ICA I don't get sampleinfo field after applying ft_componentanalysis. It is quite crucial because after I would need it for ft_databrowser to inspect separate components. Presumably it has smth to do with ft_selectdata.
Robert Oostenveld - 2014-05-01 12:21:52 +0200
thanks for reporting, ft_componentanalysis indeed should retain sample info and trialinfo
Eelke Spaak - 2014-05-12 17:49:59 +0200
Hi Lara, Could you see whether the problem remains? I could not reproduce the error on my end, this could be due to something that changed recently. For me the sampleinfo and trialinfo are copied over: %% generate some data data = []; data.label = {'a' 'b' 'c'}'; data.time = {1:1000 1:1000 1:1000}; data.trial = {randn(3,1000) randn(3,1000) randn(3,1000)}; data.sampleinfo = [1 1000; 1501 2500; 3501 4500]; data.trialinfo = (1:3)'; %% componentanalysis cfg = []; cfg.method = 'pca'; comp = ft_componentanalysis(cfg, data); %% verify assert(isequal(data.sampleinfo, comp.sampleinfo) && isequal(data.trialinfo, comp.trialinfo));
Eelke Spaak - 2014-05-22 14:24:38 +0200
marking as worksforme for now, feel free to reopen if the problem persists