cubids.validator.build_validator_call

build_validator_call(path, local_validator=False, ignore_headers=False, schema=None)[source]

Build a subprocess command to the bids validator.

Parameters:
  • path (str) – Path to the BIDS dataset.

  • local_validator (bool) – If provided, use the local bids-validator.

  • ignore_headers (bool) – If provided, ignore NIfTI headers.

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

Returns:

command – List of strings to pass to subprocess.run().

Return type:

list