[FieldTrip] Reject the muscular and visual artifacts from resting-state continuous data

AGOURAM Hasnae hasnae.AGOURAM at univ-amu.fr
Wed Apr 26 08:50:12 CEST 2023


Hi Fieldtrip community,

I have a question regarding a tutorial on your Fieldtrip website (https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/workshop/madrid2019/tutorial_cleaning/__;!!HJOPV4FYYWzcc1jazlU!7IMAHz8WCuvGuqu4n9XXz-zA1TJdccWCrfrOSJnpA2Tisxo48IM-Lh9GuXFmOzqfdI0s84nj_FryUlXQJQhUq_KG6jUi9_9grw$ ), specifically in the section on rejecting muscular and visual artifacts. When I use the provided code to reject segment artifacts from resting-state continuous data, the result is a new matrix of data that is no longer one trial, but rather contains multiple trials and times, depending on how many segments are rejected. If I try to make it continuous, there are NaN values in the place of the rejected sampling points.

I was wondering how you handle this case. Do you work with the cleaned data that contains multiple trials and times, or do you do something else?

The provided code is :
cfg = [];
cfg.artfctdef.minaccepttim = 0.010;
cfg.artfctdef.reject       = 'partial';
if isfield(artif.artfctdef,'visual')
    cfg.artfctdef.visual.artifact = artif.artfctdef.visual.artifact;
end
if isfield(artif.artfctdef,'muscle')
    cfg.artfctdef.muscle.artifact = artif.artfctdef.muscle.artifact;
end
data = ft_rejectartifact(cfg, data);




Many thanks

Hasnae AGOURAM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20230426/774377d3/attachment.htm>


More information about the fieldtrip mailing list