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

A stimulus file was declared but not found in the dataset #2134

Open
gifale95 opened this issue Sep 17, 2024 · 4 comments
Open

A stimulus file was declared but not found in the dataset #2134

gifale95 opened this issue Sep 17, 2024 · 4 comments

Comments

@gifale95
Copy link

Hi,

While uploading a dataset to OpenNeuro I got an error in the validation step saying "A stimulus file was declared but not found in the dataset". However, after double checking the "/stimuli" directory of my dataset I am sure that the image paths and file names declared in the '*events.tsv' files are correct.

The official BIDS documentation says that "The stimulus files can be added in a /stimuli directory (under the root directory of the dataset; with optional subdirectories)", and I am following these guidelines.

Am I doing something wrong, or could there be a bug in the BIDS validator?

Thank you!
Ale

@effigies
Copy link
Collaborator

Do you see this issue in both the schema validator (https://bids-standard.github.io/bids-validator/) and the legacy validator (https://bids-standard.github.io/bids-validator/legacy/)?

@gifale95
Copy link
Author

When using the legacy validator I get the same error described above ([Code 52] STIMULUS_FILE_MISSING):

Screenshot from 2024-09-17 20-19-00

With the schema validator I get a different error, also related to the stimuli folder:

Screenshot from 2024-09-17 20-15-11

However, here too I do understand why I'm getting the error, since there is a ".bidsignore" file included in the dataset as the error text suggests. This is the content of the ".bidsignore" file.

used_mri_sequences.pdf

stimuli/multivariate_rnc_controlling_images/
stimuli/univariate_rnc_controlling_images/
stimuli/catch_images/

@effigies
Copy link
Collaborator

What happens if you remove the stimuli/ directories from .bidsignore? You shouldn't need to ignore valid files.

For the used_mri_sequences.pdf, you could try adding a / to see if that matches the file better?

@gifale95
Copy link
Author

After editing the .bidsignore file as you suggested, the schema validator error remains the same, but the legacy validator error disappears, and I also no longer get errors when uploading the dataset on OpenNeuro. Thank you very much for your help!

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

2 participants