High sampling rate problem (60 000 Hz)

Open
#38 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
matlab
Domain
data

Research direction

Reproduce the provided pop_clean_rawdata call using the attached EDF and LOC files, then inspect the reported locations in clean_windows (105), clean_asr (146), clean_artifacts (233), and pop_clean_rawdata (151). Determine why the six-channel, 60,000 Hz input produces the indexing or integer-class error and confirm a reproducible resolution without changing the requested ASR settings.

Written by the indexing model from the issue text.

Description

I have a EEG data sample which contains six channels. Two of them are scalp channels (Tp9 & Tp10), the other four are implanted electrodes which are located near the medial geniculate nucleus (MGB) of the patients brain during deep brain stimulation (DBS) surgery. The exact location is not known, but these four channels are only millimeters apart in order to extract accurate local field potentials (LFP). I added the EEG data as EDF file and the channel locations as LOC file. When I try to run ASR with the following code for example, I receive an error saying:

Input -->
EEG = eeg_checkset( EEG );
EEG = pop_clean_rawdata(EEG, 'FlatlineCriterion','off','ChannelCriterion','off','LineNoiseCriterion','off','Highpass','off','BurstCriterion',20,'WindowCriterion',0.25,'BurstRejection','on','Distance','Euclidian','WindowCriterionTolerances',[-Inf 7] );
[ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, 1,'overwrite','on','gui','off');

Output-->
'Array indices must be positive integers or logical values.
occurred in:
clean_windows: 105
clean_asr: 146
clean_artifacts: 233
pop_clean_rawdata: 151'

or

'Integers can only be combined with integers of the same class, or scalar doubles.'

I tried to convert the EEG.data to double in order to make positive integers or integers, but this does not seem to work.
I cannot go into the detailed functions to check where it goes wrong.
Can you please help me out?

Thank you in advance,
AD stimulus AD elektrodes.zip

Sincerely,
Jelle van der Eerden

Dominant language
MATLAB
Stars
55
Forks
19
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sccn/clean_rawdata

All issues in sccn/clean_rawdata

Similar issues

More MATLAB issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.