cubids.workflows.validate

validate(bids_dir, output_prefix, validation_scope, participant_label, local_validator, ignore_nifti_headers, schema, n_cpus=1)[source]

Run the bids validator.

Parameters:
  • bids_dir (pathlib.Path) – Path to the BIDS directory.

  • output_prefix (pathlib.Path) – Output filename prefix.

  • validation_scope (str) – Scope of validation: ‘dataset’ validates the entire dataset, ‘subject’ validates each subject separately.

  • participant_label (list of str or None) – Filter the validation to only include the listed subjects. When provided, validation_scope is automatically set to ‘subject’ by the CLI.

  • local_validator (bool) – Use the local bids validator.

  • ignore_nifti_headers (bool) – Ignore NIfTI headers when validating.

  • schema (pathlib.Path or None) – Path to the BIDS schema file.

  • n_cpus (int) – Number of CPUs to use for parallel validation (only when validation_scope=’subject’). Default is 1 (sequential processing).