Hi,
I am trying to create a new custom process for my processing pipeline. Just wanna know, If I opt for ‘filter’ in the category, will the sInput.A include / exclude the bad segments?
TQVM.
Hi,
I am trying to create a new custom process for my processing pipeline. Just wanna know, If I opt for ‘filter’ in the category, will the sInput.A include / exclude the bad segments?
TQVM.
I think i’ve got the answer. It doesn’t exclude bad segments, right? So, what are the options to exclude them from sInputs.A matrix if let say i want to proceed with ‘filter’?
If you are processing imported trials: the bad trials are excluded from the selection in the Process1 list.
If you are processing continuous files: the entire files will have to be processed at once, without any subselection of time segments. The processing functions (for the type “filter” at least) are not equipped to process noncontiguous time blocks. A “filter” is supposed to return in output the same number of time samples it had in input (ie. the entire file).
If you want to exclude bad blocks from your computation, you have to do this manually, as it is done for instance in the detection processes:
https://github.com/brainstorm-tools/brainstorm3/blob/master/toolbox/process/functions/process_evt_detect_analog.m#L237
https://github.com/brainstorm-tools/brainstorm3/blob/master/toolbox/process/functions/process_ssp2.m#L348
Thank you francois for the clarifications and suggestions. Very helpful indeed. will proceed with manual detection and exclusion.