Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Study: Clearing #770

Open
nicalbee opened this issue May 7, 2024 · 0 comments
Open

Study: Clearing #770

nicalbee opened this issue May 7, 2024 · 0 comments

Comments

@nicalbee
Copy link

nicalbee commented May 7, 2024

Description

After importing a BIDS dataset as a STUDY, when cases are cleared from the STUDY, they remain in STUDY.design.cases.value (possibly other variables). This means that an error comes up at line 248 of std_readdata further down the pipeline as the subjectList (created on line 154 of std_readdata) doesn't have a matching file (248: fileName = getfilename({STUDY.datasetinfo(datInds).filepath}, STUDY.datasetinfo(datInds(1)).subject, { STUDY.datasetinfo(datInds).session }, fileExt, length(uniqueSessions) == 1);)


#### Steps to Reproduce
  1. Import BIDS STUDY folder (may occur for other Study setups - I haven't tested)
  2. In the EEGLAB GUI: select 'Study' > 'Edit study info'
  3. Use the 'Clear' button to remove a file or two and click 'Ok'
  4. Examine the 'STUDY.design.cases.value' variable in the MATLAB command window. The cleared subject numbers remain present for me.

#### Expected behavior: I would expect that using the 'Clear' button would remove files/participants from the Study data set at all levels.
#### Actual behavior: Despite the row being cleared in the 'Study' > 'Edit study info' GUI, some elements of the file remain and can cause issues at later stages. For example, when plotting:

20240507 EEGLAB std_readdata at line 248


#### Versions
OS version Microsoft Windows 10 Enterprise - 10.0.19045 Build 19045
Matlab version '9.13.0.2080170 (R2022b) Update 1'
EEGLAB version v2024.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant