Expand description
BIDS dataset validation utilities.
Provides functions for validating BIDS dataset roots, derivative directories,
and file indexing patterns. Used by bids-layout during dataset indexing to
determine which files to include or exclude.
§Root Validation
validate_root() checks that a path exists, is a directory, and contains
a valid dataset_description.json. If validation is enabled, the description
is parsed and checked for required fields.
§Derivative Validation
validate_derivative_path() ensures derivative datasets have a valid
dataset_description.json with pipeline information (either GeneratedBy
or the legacy PipelineDescription).
§Ignore / Force Patterns
Default ignore patterns exclude code/, models/, sourcedata/, stimuli/,
hidden files (.-prefixed), and common non-BIDS directories. These can be
overridden with custom patterns via validate_indexing_args().
Structs§
- Validation
Issue - A single validation issue found in a BIDS dataset.
- Validation
Result - Result of a full dataset validation.
Statics§
- DEFAULT_
IGNORE - Directories to ignore by default during indexing.
Functions§
- is_
bids_ file - Check if a path matches BIDS naming conventions (basic validation).
- resolve_
intended_ for - Resolve a BIDS URI or relative IntendedFor path to an absolute path.
- should_
force_ index - Check if a path should be force-indexed.
- should_
ignore - Check if a path should be ignored during indexing.
- validate_
dataset - Perform a full BIDS validation of a dataset directory.
- validate_
derivative_ path - Validate a derivatives directory and return the pipeline name.
- validate_
indexing_ args - Validate and sort indexing arguments.
- validate_
root - Validate the root directory of a BIDS dataset.