Back to the main page.

Bug 2152 - ft_rejectvisual: also return trlsel

Status CLOSED WONTFIX
Reported 2013-05-03 10:00:00 +0200
Modified 2019-08-10 12:02:55 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: All
Operating System: All
Importance: P3 enhancement
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

Joscha Schmiedt - 2013-05-03 10:00:25 +0200

In some cases it would be useful to have ft_rejectvisual also return the trlsel variable. At the moment, if you want to apply trial rejection on other simultaneously recorded data, e.g. eye data or time-continuous MUA with different sampling rates, this is rather difficult. Basically, it's possible to use the sampleinfo of the artifact struct, but that becomes not necessarily unique anymore if the data contains data from different recording sessions. If the trlsel is stored in the returned data.cfg or as a separate output argument this task becomes very simple.


Jan-Mathijs Schoffelen - 2013-05-07 06:44:13 +0200

This can be already done if you code the ordinal trial number in the .trialinfo field. Basically, you can store there whatever you want. Not only the ordinal trial number can be specified, you can also add a column that pertains to the recording session. Ft_rejectvisual also prunes the trialinfo-matrix, so in this way you can get yourself all information you need.


Robert Oostenveld - 2019-08-10 12:02:55 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on https://github.com/fieldtrip/fieldtrip/issues.