BIDS Validation¶
NEMAR requires all datasets to be in valid BIDS format. This guide covers validation.
Quick Validation¶
What Gets Checked¶
The BIDS validator checks:
- Structure - Files and folders follow BIDS naming conventions
- Metadata - Required JSON sidecar files are present
- Consistency - Data matches metadata descriptions
- Completeness - Required files exist
Understanding Results¶
Errors (Must Fix)¶
Errors indicate invalid BIDS structure that must be fixed:
Warnings (Review)¶
Warnings suggest potential issues but don't block upload:
Validation Options¶
# Basic validation
nemar dataset validate ./my-dataset
# Verbose output (show all checks)
nemar dataset validate ./my-dataset --verbose
# Ignore specific warnings
nemar dataset validate ./my-dataset --config .bidsvalidatorrc
# Output as JSON
nemar dataset validate ./my-dataset --json
Common Errors and Fixes¶
Missing dataset_description.json¶
Create the file in your dataset root:
{
"Name": "My EEG Dataset",
"BIDSVersion": "1.9.0",
"DatasetType": "raw",
"License": "CC BY-NC 4.0",
"Authors": ["Last, First", "Last2, First2"]
}
Invalid Filename¶
BIDS filenames must follow the pattern:
Example:
Missing Events File¶
For task data, create an events.tsv:
Custom Validation Config¶
Create .bidsvalidatorrc in your dataset root:
Validation Before Upload¶
Validation runs automatically during upload. To skip (not recommended):
Not Recommended
Skipping validation may result in a dataset that cannot be properly indexed or used.