npm to be at least version 7 (npm install --global npm@^7)npm install -g bids-validatorbids-validator to start validating datasets.docker run -ti --rm -v /path/to/data:/data:ro bids/validator /data
but replace the /path/to/data part of the command with your own path on your machine.pip install bids_validator to acquire the
BIDS Validator PyPi packageโ pythonfrom bids_validator import BIDSValidatorBIDSValidator().is_bids('path/to/a/bids/file')The BIDS Validator is designed to work in both the browser and in Node.js. We target support for the latest long term stable (LTS) release of Node.js and the latest version of Chrome.
There is also a library of helper functions written in Python, for use with BIDS compliant applications written in this language.
Please report any issues you experience while using these support targets via the GitHub issue trackerโ . If you experience issues outside of these supported environments and believe we should extend our targeted support feel free to open a new issue describing the issue, your support target and why you require extended support and we will address these issues on a case by case basis.
This project follows the all-contributorsโ specification. Contributions of any kind are welcome!
The project is maintained by @rwblairโ with the help of many contributors listed below. (The emoji keyโ is indicating the kind of contribution)
Please also see Acknowledgmentsโ .
The BIDS Validator has one primary method that takes a directory as either a path to the directory (node) or the object given by selecting a directory with a file input (browser), an options object, and a callback.
Available options include:
For example:
validate.BIDS(directory, {ignoreWarnings: true}, function (issues, summary) {console.log(issues.errors, issues.warnings);});
If you would like to test individual files you can use the file specific checks that we expose.
Additionally you can reformat stored errors a
Content type
Image
Digest
sha256:45ae3ad1dโฆ
Size
55 MB
Last updated
about 2 months ago
docker pull bids/validator