| POP_REJSPEC | Rejection of artifact in a dataset using thresholding of frequencies in the data. |
![]() | |
| Usage: | >> pop_rejspec(INEEG, typerej); % pop-up interactive windo mode >> [OUTEEG, Indexes] = pop_rejspec( INEEG, typerej, elec_comp, lowthresh, upthresh, startfreq, endfreq, superpose, reject); |
| Pop-up window options: | |
"Electrode|Component" |
[edit box] electrode or component number(s) to take into consideration for rejection. Sets the 'elec_comp' parameter in the command line call (see below). |
"Lower limits(s)" |
[edit box] lower threshold limits(s) (in dB). Sets the command line parameter 'lowthresh'. If more than one, apply to each electrode|component individually. If fewer than number of electrodes|components, apply the last values to all remaining electrodes|components. |
"Upper limits(s)" |
[edit box] upper threshold limit(s) in dB. Sets the command line parameter 'upthresh'. |
"Low frequency(s)" |
[edit box] low-frequency limit(s) in Hz. Sets the command line parameter 'startfreq'. |
"High frequency(s)" |
[edit box] high-frequency limit(s) in Hz. Sets the command line parameter 'endfreq'. |
"Display previous rejection marks?" |
[edit box] either YES or NO. Sets the command line input option 'superpose'. |
"Reject marked trials?" |
[edit box] either YES or NO. Sets the command line input option 'reject'. |
| Command line inputs: | |
INEEG |
input dataset |
typerej |
[1|0] data to reject on (0 = component activations; 1 = electrode data). {Default is 1}. |
elec_comp |
[e1 e2 ...] electrode|component number(s) to take into consideration during rejection |
lowthresh |
lower threshold limit(s) in dB. Can be an array if several electrodes|components. If fewer values than number of electrodes|components, the last value is used for the remaining electrodes|components. |
upthresh |
upper threshold limit(s) in dB (same syntax as lowthresh) |
startfreq |
low frequency limit(s) in Hz (same syntax as lowthresh) |
endfreq |
high frequency limit(s) in Hz (same syntax as lowthresh). Options 'startfreq' and 'endfreq' define the frequncy range used during rejection. |
superpose |
[0|1] 0 = Do not superpose rejection marks on previous marks stored in the dataset. 1 = Show both previous and current marks using different colors. {Default: 0}. |
reject |
[0|1] 0 = Do not reject marked trials (but store the marks. 1 = Reject marked trials. {Default: 1}. |
| Outputs: | |
OUTEEG |
output dataset with updated spectrograms |
Indexes |
index of rejected sweeps |
| Note: | When eegplot() is called, modifications are applied to the current dataset at the end of the call to eegplot() (e.g., when the user presses the 'Reject' button). |
| Author: | Arnaud Delorme, CNL / Salk Institute, 2001 |
| See also: | eegthresh(), eeglab(), eegplot(), pop_rejepoch |