Skip to content

hmrR_StimRejection

jayd1860 edited this page Apr 11, 2023 · 1 revision

UI Name :
Stim_Exclude

Syntax :
[stim, tRange] = hmrR_StimRejection(data, stim, tIncAuto, tIncMan, tRange)

Description :
Excludes stims that fall within the time points identified as motion artifacts from HRF calculation.

Inputs :

  • data: SNIRF data object
  • stim: SNIRF stim object
  • tIncAuto: Cell array of length equal to the # of time bases in data. Each cell element is time points (#time points x 1) identified as motion artifacts by processing stream.
  • tIncMan: Cell array of length equal to the # of time bases in data. Each cell element is time points (#time points x 1) identified as motion artifacts by user.
  • tRange: an array of 2 numbers [t1 t2] specifying how many seconds surrounding motion artifacts, tIncMan and tIncAuto, to consider as excluded data and therefore exclude any stimuli which fall within those buffers. Typically values are t1=-2 and t2 equal to the stimulus duration.

Outputs :

  • stim: SNIRF stim object
  • tRange: same tRange array as in the input

Usage Options :

  • Stim_Exclude: [stim,tRange] = hmrR_StimRejection(dod,stim,tIncAuto,tIncMan,tRange)

Default Parameters :

  • tRange: [-5.0, 10.0]

Prerequisites :

  • Motion_Artifact: tIncAuto = hmrR_MotionArtifact(dod, probe, mlActMan, tIncMan, tMotion, tMask, STDEVthresh, AMPthresh)
  • Alternative Option:
    • Motion_Artifact_By_Channel: [tIncAuto, tIncAutoCh] = hmrR_MotionArtifactByChannel(dod, probe, mlActMan, tIncMan, tMotion, tMask, STDEVthresh, AMPthresh)
Clone this wiki locally