Name | bids-validator JSON |
Version |
1.14.6
JSON |
| download |
home_page | None |
Summary | Validator for the Brain Imaging Data Structure |
upload_time | 2024-05-09 21:23:45 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
[![Node Tests](https://github.com/bids-standard/bids-validator/actions/workflows/node_tests.yml/badge.svg)](https://github.com/bids-standard/bids-validator/actions/workflows/node_tests.yml)
[![Python tests](https://github.com/bids-standard/bids-validator/actions/workflows/python_tests.yml/badge.svg)](https://github.com/bids-standard/bids-validator/actions/workflows/python_tests.yml)
[![bids-examples tests](https://github.com/bids-standard/bids-validator/actions/workflows/test-bids-examples.yml/badge.svg)](https://github.com/bids-standard/bids-validator/actions/workflows/test-bids-examples.yml)
[![CircleCI](https://circleci.com/gh/bids-standard/bids-validator.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/bids-standard/bids-validator)
[![Codecov](https://codecov.io/gh/bids-standard/bids-validator/branch/master/graph/badge.svg)](https://codecov.io/gh/bids-standard/bids-validator)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3688707.svg)](https://doi.org/10.5281/zenodo.3688707)
# BIDS-Validator
- [BIDS-Validator](#bids-validator)
- [Quickstart](#quickstart)
- [Support](#support)
- [Maintainers and Contributors](#maintainers-and-contributors)
- [Use](#use)
- [API](#api)
- [.bidsignore](#bidsignore)
- [Configuration](#configuration)
- [In the Browser](#in-the-browser)
- [On the Server](#on-the-server)
- [Through Command Line](#through-command-line)
- [Docker image](#docker-image)
- [Python Library](#python-library)
- [Example](#example)
- [Development](#development)
- [Running Locally in a Browser](#running-locally-in-a-browser)
- [Testing](#testing)
- [Publishing](#publishing)
- [Acknowledgments](#acknowledgments)
## Quickstart
1. Web version:
1. Open [Google Chrome](https://www.google.com/chrome/) or
[Mozilla Firefox](https://mozilla.org/firefox) (currently the only
supported browsers)
1. Go to https://bids-standard.github.io/bids-validator/ and select a folder
with your BIDS dataset. If the validator seems to be working longer than
couple of minutes please open [developer tools ](https://developer.chrome.com/devtools)
and report the error at [https://github.com/bids-standard/bids-validator/issues](https://github.com/bids-standard/bids-validator/issues).
1. Command line version:
1. Install [Node.js](https://nodejs.org) (at least version 18.0.0)
1. Update `npm` to be at least version 7 (`npm install --global npm@^7`)
1. From a terminal run `npm install -g bids-validator`
1. Run `bids-validator` to start validating datasets.
1. Docker
1. Install Docker
1. From a terminal run `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.
1. Python Library:
1. Install [Python](https://www.python.org/)
1. Install [Pip](https://pip.pypa.io/en/stable/installing/) package manager for Python, if
not already installed.
1. From a terminal run `pip install bids_validator` to acquire the
[BIDS Validator PyPI package](https://pypi.org/project/bids-validator/)
or `conda install bids-validator` for the
[Conda package](https://anaconda.org/conda-forge/bids-validator).
1. Open a Python terminal and type: `python`
1. Import the BIDS Validator package `from bids_validator import BIDSValidator`
1. Check if a file is BIDS compatible `BIDSValidator().is_bids('/relative/path/to/a/bids/file')`
1. Note, the file path must be relative to the root of the BIDS dataset, and
a leading forward slash `/` must be added to the file path.
## Support
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](https://github.com/bids-standard/bids-validator/issues).
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.
## Maintainers and Contributors
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-43-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.
Contributions of any kind are welcome!
The project is maintained by [@rwblair](https://github.com/rwblair/) with the help of many contributors listed below.
(The [emoji key](https://allcontributors.org/docs/en/emoji-key) is indicating the kind of contribution)
Please also see [Acknowledgments](#acknowledgments).
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://adam2392.github.io/"><img src="https://avatars.githubusercontent.com/u/3460267?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Adam Li</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=adam2392" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=adam2392" title="Tests">β οΈ</a> <a href="#userTesting-adam2392" title="User Testing">π</a> <a href="https://github.com/bids-standard/bids-validator/issues?q=author%3Aadam2392" title="Bug reports">π</a></td>
<td align="center"><a href="https://github.com/agt24"><img src="https://avatars.githubusercontent.com/u/7869017?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Adam Thomas</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=agt24" title="Documentation">π</a></td>
<td align="center"><a href="http://happy5214.freedynamicdns.org/"><img src="https://avatars.githubusercontent.com/u/2992751?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Alexander Jones</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=happy5214" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=happy5214" title="Tests">β οΈ</a> <a href="#ideas-happy5214" title="Ideas, Planning, & Feedback">π€</a></td>
<td align="center"><a href="https://github.com/musicinmybrain"><img src="https://avatars.githubusercontent.com/u/6898909?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Ben Beasley</b></sub></a><br /><a href="#platform-musicinmybrain" title="Packaging/porting to new platform">π¦</a></td>
<td align="center"><a href="http://chrisgorgolewski.org"><img src="https://avatars.githubusercontent.com/u/238759?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Chris Gorgolewski</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/issues?q=author%3Achrisgorgo" title="Bug reports">π</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=chrisgorgo" title="Code">π»</a> <a href="#data-chrisgorgo" title="Data">π£</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=chrisgorgo" title="Documentation">π</a> <a href="#example-chrisgorgo" title="Examples">π‘</a> <a href="#ideas-chrisgorgo" title="Ideas, Planning, & Feedback">π€</a> <a href="#infra-chrisgorgo" title="Infrastructure (Hosting, Build-Tools, etc)">π</a> <a href="#maintenance-chrisgorgo" title="Maintenance">π§</a> <a href="#mentoring-chrisgorgo" title="Mentoring">π§βπ«</a> <a href="#question-chrisgorgo" title="Answering Questions">π¬</a> <a href="https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Achrisgorgo" title="Reviewed Pull Requests">π</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=chrisgorgo" title="Tests">β οΈ</a> <a href="#tutorial-chrisgorgo" title="Tutorials">β
</a> <a href="#talk-chrisgorgo" title="Talks">π’</a> <a href="#userTesting-chrisgorgo" title="User Testing">π</a></td>
<td align="center"><a href="https://github.com/choldgraf"><img src="https://avatars.githubusercontent.com/u/1839645?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Chris Holdgraf</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=choldgraf" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/effigies"><img src="https://avatars.githubusercontent.com/u/83442?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Chris Markiewicz</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=effigies" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=effigies" title="Tests">β οΈ</a> <a href="#ideas-effigies" title="Ideas, Planning, & Feedback">π€</a> <a href="https://github.com/bids-standard/bids-validator/issues?q=author%3Aeffigies" title="Bug reports">π</a> <a href="#question-effigies" title="Answering Questions">π¬</a> <a href="#tool-effigies" title="Tools">π§</a> <a href="#maintenance-effigies" title="Maintenance">π§</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/david-nishi"><img src="https://avatars.githubusercontent.com/u/28666458?v=4?s=50" width="50px;" alt=""/><br /><sub><b>David Nishikawa</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=david-nishi" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=david-nishi" title="Tests">β οΈ</a></td>
<td align="center"><a href="https://github.com/DimitriPapadopoulos"><img src="https://avatars.githubusercontent.com/u/3234522?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Dimitri Papadopoulos Orfanos</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=DimitriPapadopoulos" title="Code">π»</a></td>
<td align="center"><a href="https://duncanmmacleod.github.io/"><img src="https://avatars.githubusercontent.com/u/1618530?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Duncan Macleod</b></sub></a><br /><a href="#infra-duncanmmacleod" title="Infrastructure (Hosting, Build-Tools, etc)">π</a></td>
<td align="center"><a href="https://github.com/franklin-feingold"><img src="https://avatars.githubusercontent.com/u/35307458?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Franklin Feingold</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=franklin-feingold" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/thinknoack"><img src="https://avatars.githubusercontent.com/u/3342083?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Gregory noack</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=thinknoack" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=thinknoack" title="Tests">β οΈ</a></td>
<td align="center"><a href="http://chymera.eu/"><img src="https://avatars.githubusercontent.com/u/950524?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Horea Christian</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=TheChymera" title="Code">π»</a></td>
<td align="center"><a href="https://kaczmarj.github.io/"><img src="https://avatars.githubusercontent.com/u/17690870?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Jakub Kaczmarzyk</b></sub></a><br /><a href="#infra-kaczmarj" title="Infrastructure (Hosting, Build-Tools, etc)">π</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/jokedurnez"><img src="https://avatars.githubusercontent.com/u/7630327?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Joke Durnez</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=jokedurnez" title="Code">π»</a></td>
<td align="center"><a href="http://jasmainak.github.io/"><img src="https://avatars.githubusercontent.com/u/15852194?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Mainak Jas</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=jasmainak" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=jasmainak" title="Tests">β οΈ</a> <a href="#ideas-jasmainak" title="Ideas, Planning, & Feedback">π€</a> <a href="https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Ajasmainak" title="Reviewed Pull Requests">π</a> <a href="#userTesting-jasmainak" title="User Testing">π</a></td>
<td align="center"><a href="http://fair.dei.unipd.it/marco-castellaro"><img src="https://avatars.githubusercontent.com/u/5088923?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Marco Castellaro</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=marcocastellaro" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=marcocastellaro" title="Tests">β οΈ</a></td>
<td align="center"><a href="https://github.com/MaxvandenBoom"><img src="https://avatars.githubusercontent.com/u/43676624?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Max</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=MaxvandenBoom" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/issues?q=author%3AMaxvandenBoom" title="Bug reports">π</a></td>
<td align="center"><a href="http://psychoinformatics.de/"><img src="https://avatars.githubusercontent.com/u/136479?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Michael Hanke</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=mih" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/naveau"><img src="https://avatars.githubusercontent.com/u/1488318?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Mikael Naveau</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=naveau" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/nellh"><img src="https://avatars.githubusercontent.com/u/11369795?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Nell Hardcastle</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=nellh" title="Code">π»</a> <a href="#ideas-nellh" title="Ideas, Planning, & Feedback">π€</a> <a href="#infra-nellh" title="Infrastructure (Hosting, Build-Tools, etc)">π</a> <a href="#question-nellh" title="Answering Questions">π¬</a> <a href="https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Anellh" title="Reviewed Pull Requests">π</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/ntraut"><img src="https://avatars.githubusercontent.com/u/22977927?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Nicolas Traut</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=ntraut" title="Code">π»</a></td>
<td align="center"><a href="https://www.linkedin.com/in/parul-sethi"><img src="https://avatars.githubusercontent.com/u/11822050?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Parul Sethi</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=parulsethi" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=parulsethi" title="Tests">β οΈ</a></td>
<td align="center"><a href="https://github.com/patsycle"><img src="https://avatars.githubusercontent.com/u/41481345?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Patricia Clement</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=patsycle" title="Code">π»</a></td>
<td align="center"><a href="https://remi-gau.github.io/"><img src="https://avatars.githubusercontent.com/u/6961185?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Remi Gau</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=Remi-Gau" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=Remi-Gau" title="Documentation">π</a> <a href="#userTesting-Remi-Gau" title="User Testing">π</a></td>
<td align="center"><a href="https://hoechenberger.net/"><img src="https://avatars.githubusercontent.com/u/2046265?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Richard HΓΆchenberger</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=hoechenberger" title="Code">π»</a> <a href="#userTesting-hoechenberger" title="User Testing">π</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=hoechenberger" title="Tests">β οΈ</a> <a href="https://github.com/bids-standard/bids-validator/issues?q=author%3Ahoechenberger" title="Bug reports">π</a></td>
<td align="center"><a href="https://github.com/robertoostenveld"><img src="https://avatars.githubusercontent.com/u/899043?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Robert Oostenveld</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=robertoostenveld" title="Code">π»</a> <a href="#ideas-robertoostenveld" title="Ideas, Planning, & Feedback">π€</a> <a href="https://github.com/bids-standard/bids-validator/issues?q=author%3Arobertoostenveld" title="Bug reports">π</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=robertoostenveld" title="Tests">β οΈ</a></td>
<td align="center"><a href="https://github.com/SetCodesToFire"><img src="https://avatars.githubusercontent.com/u/25459509?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Rohan Goyal</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=SetCodesToFire" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/rwblair"><img src="https://avatars2.githubusercontent.com/u/14927911?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Ross Blair</b></sub></a><br /><a href="#maintenance-rwblair" title="Maintenance">π§</a> <a href="#ideas-rwblair" title="Ideas, Planning, & Feedback">π€</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=rwblair" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/issues?q=author%3Arwblair" title="Bug reports">π</a> <a href="#infra-rwblair" title="Infrastructure (Hosting, Build-Tools, etc)">π</a> <a href="#projectManagement-rwblair" title="Project Management">π</a> <a href="#question-rwblair" title="Answering Questions">π¬</a> <a href="https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Arwblair" title="Reviewed Pull Requests">π</a> <a href="#tool-rwblair" title="Tools">π§</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=rwblair" title="Tests">β οΈ</a></td>
<td align="center"><a href="http://www.poldracklab.org/"><img src="https://avatars.githubusercontent.com/u/871056?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Russ Poldrack</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=poldrack" title="Code">π»</a> <a href="#financial-poldrack" title="Financial">π΅</a> <a href="#fundingFinding-poldrack" title="Funding Finding">π</a></td>
<td align="center"><a href="http://soichi.us/"><img src="https://avatars.githubusercontent.com/u/923896?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Soichi Hayashi</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/issues?q=author%3Asoichih" title="Bug reports">π</a></td>
<td align="center"><a href="https://www.stefanappelhoff.com"><img src="https://avatars.githubusercontent.com/u/9084751?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Stefan Appelhoff</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/issues?q=author%3Asappelhoff" title="Bug reports">π</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=sappelhoff" title="Code">π»</a> <a href="#data-sappelhoff" title="Data">π£</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=sappelhoff" title="Documentation">π</a> <a href="#example-sappelhoff" title="Examples">π‘</a> <a href="#ideas-sappelhoff" title="Ideas, Planning, & Feedback">π€</a> <a href="#infra-sappelhoff" title="Infrastructure (Hosting, Build-Tools, etc)">π</a> <a href="#maintenance-sappelhoff" title="Maintenance">π§</a> <a href="#mentoring-sappelhoff" title="Mentoring">π§βπ«</a> <a href="#question-sappelhoff" title="Answering Questions">π¬</a> <a href="https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Asappelhoff" title="Reviewed Pull Requests">π</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=sappelhoff" title="Tests">β οΈ</a> <a href="#tutorial-sappelhoff" title="Tutorials">β
</a> <a href="#talk-sappelhoff" title="Talks">π’</a> <a href="#userTesting-sappelhoff" title="User Testing">π</a></td>
<td align="center"><a href="https://github.com/suyashdb"><img src="https://avatars.githubusercontent.com/u/11152799?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Suyash </b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=suyashdb" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/tsalo"><img src="https://avatars.githubusercontent.com/u/8228902?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Taylor Salo</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=tsalo" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/olgn"><img src="https://avatars.githubusercontent.com/u/8853289?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Teal Hobson-Lowther</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=olgn" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=olgn" title="Tests">β οΈ</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/riddlet"><img src="https://avatars.githubusercontent.com/u/4789331?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Travis Riddle</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/issues?q=author%3Ariddlet" title="Bug reports">π</a></td>
<td align="center"><a href="https://github.com/VisLab"><img src="https://avatars.githubusercontent.com/u/1189050?v=4?s=50" width="50px;" alt=""/><br /><sub><b>VisLab</b></sub></a><br /><a href="#ideas-VisLab" title="Ideas, Planning, & Feedback">π€</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=VisLab" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/wazeerzulfikar"><img src="https://avatars.githubusercontent.com/u/15856554?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Wazeer Zulfikar</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=wazeerzulfikar" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/yarikoptic"><img src="https://avatars.githubusercontent.com/u/39889?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Yaroslav Halchenko</b></sub></a><br /><a href="#ideas-yarikoptic" title="Ideas, Planning, & Feedback">π€</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=yarikoptic" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=yarikoptic" title="Documentation">π</a> <a href="#userTesting-yarikoptic" title="User Testing">π</a></td>
<td align="center"><a href="https://github.com/constellates"><img src="https://avatars.githubusercontent.com/u/4325905?v=4?s=50" width="50px;" alt=""/><br /><sub><b>constellates</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=constellates" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=constellates" title="Tests">β οΈ</a></td>
<td align="center"><a href="https://github.com/dewarrn1"><img src="https://avatars.githubusercontent.com/u/1322751?v=4?s=50" width="50px;" alt=""/><br /><sub><b>dewarrn1</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=dewarrn1" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/dkp"><img src="https://avatars.githubusercontent.com/u/965184?v=4?s=50" width="50px;" alt=""/><br /><sub><b>dkp</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=dkp" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/MatthewZito"><img src="https://avatars.githubusercontent.com/u/47864657?v=4?s=50" width="50px;" alt=""/><br /><sub><b>goldmund</b></sub></a><br /><a href="https://github.com/bids-standard/bids-validator/commits?author=MatthewZito" title="Code">π»</a> <a href="https://github.com/bids-standard/bids-validator/commits?author=MatthewZito" title="Tests">β οΈ</a></td>
</tr>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
## Use
### API
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:
- ignoreWarnings - (boolean - defaults to false)
- ignoreNiftiHeaders - (boolean - defaults to false)
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.
- validate.BIDS()
- validate.JSON()
- validate.TSV()
- validate.NIFTI()
Additionally you can reformat stored errors against a new config using `validate.reformat()`
### .bidsignore
Optionally one can include a `.bidsignore` file in the root of the dataset. This
file lists patterns (compatible with the [.gitignore syntax](https://git-scm.com/docs/gitignore))
defining files that should be ignored by the validator. This option is useful
when the validated dataset includes file types not yet supported by BIDS
specification.
```Text
*_not_bids.txt
extra_data/
```
### Configuration
You can configure the severity of errors by passing a json configuration file
with a `-c` or `--config` flag to the command line interface or by defining a
config object on the options object passed during javascript usage.
If no path is specified a default path of `.bids-validator-config.json` will be used. You can add this file to your dataset to share dataset specific validation configuration. To disable this behavior use `--no-config` and the default configuration will be used.
The basic configuration format is outlined below. All configuration is optional.
```JSON
{
"ignore": [],
"warn": [],
"error": [],
"ignoredFiles": []
}
```
`ignoredFiles` takes a list of file paths or glob patterns you'd like to ignore.
Lets say we want to ignore all files and sub-directory under `/derivatives/`.
**This is not the same syntax as used in the .bidsignore file**
```JSON
{
"ignoredFiles": ["/derivatives/**"]
}
```
Note that adding two stars `**` in path makes validator recognize all files and
sub-dir to be ignored.
`ignore`, `warn`, and `error` take lists of issue codes or issue keys and change
the severity of those issues so they are either ignored or reported as warnings
or errors. You can find a list of all available issues at
[utils/issues/list](https://github.com/bids-standard/bids-validator/blob/master/bids-validator/utils/issues/list.js).
Some issues may be ignored by default, but can be elevated to warnings or errors.
These provide a way to check for common things that are more specific than BIDS
compatibility. An example is a check for the presence of a T1w modality. The
following would raise an error if no T1W image was found in a dataset.
```JSON
{
"error": ["NO_T1W"]
}
```
In addition to issue codes and keys these lists can also contain objects with
and "and" or "or" properties set to arrays of codes or keys. These allow some
level of conditional logic when configuring issues. For example:
```JSON
{
"ignore": [
{
"and": [
"ECHO_TIME_GREATER_THAN",
"ECHO_TIME_NOT_DEFINED"
]
}
]
}
```
In the above example the two issues will only be ignored if both of them are
triggered during validation.
```JSON
{
"ignore": [
{
"and": [
"ECHO_TIME_GREATER_THAN",
"ECHO_TIME_NOT_DEFINED"
{
"or": [
"ECHO_TIME1-2_NOT_DEFINED",
"ECHO_TIME_MUST_DEFINE"
]
}
]
}
]
}
```
And in this example the listed issues will only be ignored if
`ECHO_TIME_GREATER_THAN`, `ECHO_TIME_NOT_DEFINED` and either
`ECHO_TIME1-2_NOT_DEFINED` or `ECHO_TIME_MUST_DEFINE` are triggered during
validation.
"or" arrays are not supported at the lowest level because it wouldn't add any
functionality. For example the following is not supported.
```JSON
{
"ignore": [
{
"or": [
"ECHO_TIME_GREATER_THAN",
"ECHO_TIME_NOT_DEFINED"
]
}
]
}
```
because it would be functionally the same as this:
```JSON
{
"ignore": [
"ECHO_TIME_GREATER_THAN",
"ECHO_TIME_NOT_DEFINED"
]
}
```
For passing a configuration while using the bids-validator on the command line,
you can use the following style to for example ignore empty
file errors (99) and files that cannot be read (44):
```
bids-validator --config.ignore=99 --config.ignore=44 path/to/bids/dir
```
This style of use puts limits on what configuration you can require, so for
complex scenarios, we advise users to create a dedicated configuration file with
contents as described above.
### In the Browser
The BIDS Validator currently works in the browser with [browserify](https://browserify.org/)
or [webpack](https://webpack.js.org/). You can add it to a project by cloning
the validator and requiring it with browserify syntax
`const validate = require('bids-validator');` or an ES2015 webpack import
`import validate from 'bids-validator'`.
### On the Server
The BIDS validator works like most npm packages. You can install it by running
`npm install bids-validator`.
### Through Command Line
If you install the bids validator globally by using `npm install -g bids-validator`
you will be able to use it as a command line tool. Once installed you should be
able to run `bids-validator /path/to/your/bids/directory` and see any validation
issues logged to the terminal. Run `bids-validator` without a directory path to
see available options.
## Docker image
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/bids/validator?label=docker)](https://hub.docker.com/r/bids/validator)
To use bids validator with [docker](https://www.docker.com/), you simply need to
[install docker](https://docs.docker.com/install/) on your system.
And then from a terminal run:
- `docker run -ti --rm bids/validator --version` to print the version of the
docker image
- `docker run -ti --rm bids/validator --help` to print the help
- `docker run -ti --rm -v /path/to/data:/data:ro bids/validator /data`
to validate the dataset `/path/to/data` on your host machine
See here for a brief explanation of the commands:
- `docker run` is the command to tell docker to run a certain docker image,
usually taking the form `docker run <IMAGENAME> <COMMAND>`
- the `-ti` flag means the inputs are accepted and outputs are printed to the
terminal
- the `--rm` flag means that the state of the docker container is not saved
after it has run
- the `-v` flag is adding your local data to the docker container
([bind-mounts](https://docs.docker.com/storage/bind-mounts/)). Importantly,
the input after the `-v` flag consists of three fields separated colons: `:`
- the first field is the path to the directory on the host machine:
`/path/to/data`
- the second field is the path where the directory is mounted in the
container
- the third field is optional. In our case, we use `ro` to specify that the
mounted data is _read only_
## Python Library
[![PyPI version](https://badge.fury.io/py/bids-validator.svg)](https://badge.fury.io/py/bids-validator)
[![Conda version](https://img.shields.io/conda/vn/conda-forge/bids-validator)](https://anaconda.org/conda-forge/bids-validator)
There are is a limited library of helper functions written in Python. The main function
determines if a file extension is compliant with the BIDS specification. You can find
the available functions in the library, as well as their descriptions,
[here](https://github.com/bids-standard/bids-validator/blob/master/bids-validator/bids_validator/bids_validator.py).
To install, run `pip install -U bids_validator` (requires python and pip) or
`conda install bids-validator` (requires a Conda environment).
### Example
```Python
from bids_validator import BIDSValidator
validator = BIDSValidator()
filepaths = ["/sub-01/anat/sub-01_rec-CSD_T1w.nii.gz", "/sub-01/anat/sub-01_acq-23_rec-CSD_T1w.exe"]
for filepath in filepaths:
print(validator.is_bids(filepath)) # will print True, and then False
```
Note, the file path must be relative to the root of the BIDS dataset, and a
leading forward slash `/` must be added to the file path.
## Development
To develop locally, clone the project and run `npm install` from the project
root. This will install external dependencies. If you wish to install
`bids-validator` globally (so that you can run it in other folders), use the
following command to install it globally: `cd bids-validator && npm install -g` (for windows users, if in a different drive add /d, e.g. `cd /d F:\bids-validator && npm install -g`)
Please see the [CONTRIBUTING.md](../CONTRIBUTING.md)
for additional details.
### Bundling
bids-validator is bundled with esbuild. While developing, the script `bids-validator/bin/bids-validator` will automatically bundle the project each time it is run. To test a build without publishing it `npm -w bids-validator run build`. This will generate a bids-validator/dist directory containing the local build and `bids-validator/bin/bids-validator` will use this build. To return to automatic bundling on each run, remove the dist directory.
### Running Locally in a Browser
A note about OS X, the dependencies for the browser require a npm package called
node-gyp which needs xcode to be installed in order to be compiled.
1. The browser version of `bids-validator` lives in the repo subdirectory
`/bids-validator-web`. It is a [React.js](https://reactjs.org/) application
that uses the [next.js](https://nextjs.org/) framework.
2. To develop `bids-validator` and see how it will act in the browser, simply run
`npm run web-dev` in the project root and navigate to `localhost:3000`.
3. In development mode, changes to the codebase will trigger rebuilds of the application
automatically.
4. Changes to the `/bids-validator` in the codebase will also be reflected in the
web application.
5. Tests use the [Jest](https://jestjs.io/index.html) testing library and should be developed in `/bids-validator-web/tests`.
We can always use more tests, so please feel free to contribute a test that reduces the chance
of any bugs you fix!
6. To ensure that the web application compiles successfully in production, run `npm run web-export`
### Testing
If it's your first time running tests, first use the command `git submodule update --init --depth 1` to pull the test example data. This repo contains the [bids-examples github repository](https://github.com/bids-standard/bids-examples) as a [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules).
To start the test suite run `npm run test` from the project root. `npm run test -- --watch`
is useful to run tests while making changes. A coverage report is available with
`npm run coverage`.
To run the linter which checks code conventions run `npm run lint`.
### Install globally from a development branch
Global installs are not recommended for development because of the possibility of package conflicts with other Node.js projects. If you do need to test with a global install from a development tree, follow these steps to generate the NPM package without publishing it and install the package locally.
1. `npm -w bids-validator run build`
2. `npm -w bids-validator pack`
3. `npm install -g bids-validator-*.tgz`
### Publishing
Publishing is done with [Lerna](https://github.com/lerna/lerna). Use the command `npx lerna publish` and follow instructions to set a new version.
Using lerna publish will create a git commit with updated version information and create a version number tag for it, push the tag to GitHub, then publish to NPM and PyPI. The GitHub release is manual following that.
## Acknowledgments
Many contributions to the `bids-validator` were done by members of the
BIDS community. See the
[list of contributors](https://bids-specification.readthedocs.io/en/stable/99-appendices/01-contributors.html).
A large part of the development of `bids-validator` is currently done by
[Squishymedia](https://squishymedia.com/), who are in turn financed through
different grants offered for the general development of BIDS. See the list
below.
Development and contributions were supported through the following federally
funded projects/grants:
- [BIDS Derivatives (NIMH: R24MH114705, PI: Poldrack)](https://grantome.com/grant/NIH/R24-MH114705-01)
- [OpenNeuro (NIMH: R24MH117179, PI: Poldrack)](https://grantome.com/grant/NIH/R24-MH117179-01)
- [Spokes: MEDIUM: WEST (NSF: 1760950, PI: Poldrack & Gorgolewski)](https://grantome.com/grant/NSF/IIS-1760950)
- [ReproNim](http://repronim.org) [(NIH-NIBIB P41 EB019936, PI: Kennedy)](https://projectreporter.nih.gov/project_info_description.cfm?aid=8999833)
Raw data
{
"_id": null,
"home_page": null,
"name": "bids-validator",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "PyBIDS developers <bids-discussion@googlegroups.com>",
"download_url": "https://files.pythonhosted.org/packages/76/3e/340bbc48508e9de0cc68d26b38dad5d3acb7431791c5d15c51022d259d48/bids_validator-1.14.6.tar.gz",
"platform": null,
"description": "[![Node Tests](https://github.com/bids-standard/bids-validator/actions/workflows/node_tests.yml/badge.svg)](https://github.com/bids-standard/bids-validator/actions/workflows/node_tests.yml)\n[![Python tests](https://github.com/bids-standard/bids-validator/actions/workflows/python_tests.yml/badge.svg)](https://github.com/bids-standard/bids-validator/actions/workflows/python_tests.yml)\n[![bids-examples tests](https://github.com/bids-standard/bids-validator/actions/workflows/test-bids-examples.yml/badge.svg)](https://github.com/bids-standard/bids-validator/actions/workflows/test-bids-examples.yml)\n[![CircleCI](https://circleci.com/gh/bids-standard/bids-validator.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/bids-standard/bids-validator)\n[![Codecov](https://codecov.io/gh/bids-standard/bids-validator/branch/master/graph/badge.svg)](https://codecov.io/gh/bids-standard/bids-validator)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3688707.svg)](https://doi.org/10.5281/zenodo.3688707)\n\n# BIDS-Validator\n\n- [BIDS-Validator](#bids-validator)\n - [Quickstart](#quickstart)\n - [Support](#support)\n - [Maintainers and Contributors](#maintainers-and-contributors)\n - [Use](#use)\n - [API](#api)\n - [.bidsignore](#bidsignore)\n - [Configuration](#configuration)\n - [In the Browser](#in-the-browser)\n - [On the Server](#on-the-server)\n - [Through Command Line](#through-command-line)\n - [Docker image](#docker-image)\n - [Python Library](#python-library)\n - [Example](#example)\n - [Development](#development)\n - [Running Locally in a Browser](#running-locally-in-a-browser)\n - [Testing](#testing)\n - [Publishing](#publishing)\n - [Acknowledgments](#acknowledgments)\n\n## Quickstart\n\n1. Web version:\n 1. Open [Google Chrome](https://www.google.com/chrome/) or\n [Mozilla Firefox](https://mozilla.org/firefox) (currently the only\n supported browsers)\n 1. Go to https://bids-standard.github.io/bids-validator/ and select a folder\n with your BIDS dataset. If the validator seems to be working longer than\n couple of minutes please open [developer tools ](https://developer.chrome.com/devtools)\n and report the error at [https://github.com/bids-standard/bids-validator/issues](https://github.com/bids-standard/bids-validator/issues).\n1. Command line version:\n 1. Install [Node.js](https://nodejs.org) (at least version 18.0.0)\n 1. Update `npm` to be at least version 7 (`npm install --global npm@^7`)\n 1. From a terminal run `npm install -g bids-validator`\n 1. Run `bids-validator` to start validating datasets.\n1. Docker\n 1. Install Docker\n 1. From a terminal run `docker run -ti --rm -v /path/to/data:/data:ro bids/validator /data`\n but replace the `/path/to/data` part of the command with your own path on your machine.\n1. Python Library:\n 1. Install [Python](https://www.python.org/)\n 1. Install [Pip](https://pip.pypa.io/en/stable/installing/) package manager for Python, if\n not already installed.\n 1. From a terminal run `pip install bids_validator` to acquire the\n [BIDS Validator PyPI package](https://pypi.org/project/bids-validator/)\n or `conda install bids-validator` for the\n [Conda package](https://anaconda.org/conda-forge/bids-validator).\n 1. Open a Python terminal and type: `python`\n 1. Import the BIDS Validator package `from bids_validator import BIDSValidator`\n 1. Check if a file is BIDS compatible `BIDSValidator().is_bids('/relative/path/to/a/bids/file')`\n 1. Note, the file path must be relative to the root of the BIDS dataset, and\n a leading forward slash `/` must be added to the file path.\n\n## Support\n\nThe BIDS Validator is designed to work in both the browser and in Node.js. We\ntarget support for the latest long term stable (LTS) release of Node.js and the\nlatest version of Chrome.\n\nThere is also a library of helper functions written in Python, for use with BIDS\ncompliant applications written in this language.\n\nPlease report any issues you experience while using these support targets via\nthe [GitHub issue tracker](https://github.com/bids-standard/bids-validator/issues).\nIf you experience issues outside of these supported environments and believe we\nshould extend our targeted support feel free to open a new issue describing the\nissue, your support target and why you require extended support and we will\naddress these issues on a case by case basis.\n\n## Maintainers and Contributors\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-43-orange.svg?style=flat-square)](#contributors-)\n\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.\nContributions of any kind are welcome!\n\nThe project is maintained by [@rwblair](https://github.com/rwblair/) with the help of many contributors listed below.\n(The [emoji key](https://allcontributors.org/docs/en/emoji-key) is indicating the kind of contribution)\n\nPlease also see [Acknowledgments](#acknowledgments).\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n <tr>\n <td align=\"center\"><a href=\"https://adam2392.github.io/\"><img src=\"https://avatars.githubusercontent.com/u/3460267?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Adam Li</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=adam2392\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=adam2392\" title=\"Tests\">\u26a0\ufe0f</a> <a href=\"#userTesting-adam2392\" title=\"User Testing\">\ud83d\udcd3</a> <a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3Aadam2392\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n <td align=\"center\"><a href=\"https://github.com/agt24\"><img src=\"https://avatars.githubusercontent.com/u/7869017?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Adam Thomas</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=agt24\" title=\"Documentation\">\ud83d\udcd6</a></td>\n <td align=\"center\"><a href=\"http://happy5214.freedynamicdns.org/\"><img src=\"https://avatars.githubusercontent.com/u/2992751?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Alexander Jones</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=happy5214\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=happy5214\" title=\"Tests\">\u26a0\ufe0f</a> <a href=\"#ideas-happy5214\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a></td>\n <td align=\"center\"><a href=\"https://github.com/musicinmybrain\"><img src=\"https://avatars.githubusercontent.com/u/6898909?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Ben Beasley</b></sub></a><br /><a href=\"#platform-musicinmybrain\" title=\"Packaging/porting to new platform\">\ud83d\udce6</a></td>\n <td align=\"center\"><a href=\"http://chrisgorgolewski.org\"><img src=\"https://avatars.githubusercontent.com/u/238759?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Chris Gorgolewski</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3Achrisgorgo\" title=\"Bug reports\">\ud83d\udc1b</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=chrisgorgo\" title=\"Code\">\ud83d\udcbb</a> <a href=\"#data-chrisgorgo\" title=\"Data\">\ud83d\udd23</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=chrisgorgo\" title=\"Documentation\">\ud83d\udcd6</a> <a href=\"#example-chrisgorgo\" title=\"Examples\">\ud83d\udca1</a> <a href=\"#ideas-chrisgorgo\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"#infra-chrisgorgo\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">\ud83d\ude87</a> <a href=\"#maintenance-chrisgorgo\" title=\"Maintenance\">\ud83d\udea7</a> <a href=\"#mentoring-chrisgorgo\" title=\"Mentoring\">\ud83e\uddd1\u200d\ud83c\udfeb</a> <a href=\"#question-chrisgorgo\" title=\"Answering Questions\">\ud83d\udcac</a> <a href=\"https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Achrisgorgo\" title=\"Reviewed Pull Requests\">\ud83d\udc40</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=chrisgorgo\" title=\"Tests\">\u26a0\ufe0f</a> <a href=\"#tutorial-chrisgorgo\" title=\"Tutorials\">\u2705</a> <a href=\"#talk-chrisgorgo\" title=\"Talks\">\ud83d\udce2</a> <a href=\"#userTesting-chrisgorgo\" title=\"User Testing\">\ud83d\udcd3</a></td>\n <td align=\"center\"><a href=\"https://github.com/choldgraf\"><img src=\"https://avatars.githubusercontent.com/u/1839645?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Chris Holdgraf</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=choldgraf\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://github.com/effigies\"><img src=\"https://avatars.githubusercontent.com/u/83442?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Chris Markiewicz</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=effigies\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=effigies\" title=\"Tests\">\u26a0\ufe0f</a> <a href=\"#ideas-effigies\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3Aeffigies\" title=\"Bug reports\">\ud83d\udc1b</a> <a href=\"#question-effigies\" title=\"Answering Questions\">\ud83d\udcac</a> <a href=\"#tool-effigies\" title=\"Tools\">\ud83d\udd27</a> <a href=\"#maintenance-effigies\" title=\"Maintenance\">\ud83d\udea7</a></td>\n </tr>\n <tr>\n <td align=\"center\"><a href=\"https://github.com/david-nishi\"><img src=\"https://avatars.githubusercontent.com/u/28666458?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>David Nishikawa</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=david-nishi\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=david-nishi\" title=\"Tests\">\u26a0\ufe0f</a></td>\n <td align=\"center\"><a href=\"https://github.com/DimitriPapadopoulos\"><img src=\"https://avatars.githubusercontent.com/u/3234522?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Dimitri Papadopoulos Orfanos</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=DimitriPapadopoulos\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://duncanmmacleod.github.io/\"><img src=\"https://avatars.githubusercontent.com/u/1618530?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Duncan Macleod</b></sub></a><br /><a href=\"#infra-duncanmmacleod\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">\ud83d\ude87</a></td>\n <td align=\"center\"><a href=\"https://github.com/franklin-feingold\"><img src=\"https://avatars.githubusercontent.com/u/35307458?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Franklin Feingold</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=franklin-feingold\" title=\"Documentation\">\ud83d\udcd6</a></td>\n <td align=\"center\"><a href=\"https://github.com/thinknoack\"><img src=\"https://avatars.githubusercontent.com/u/3342083?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Gregory noack</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=thinknoack\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=thinknoack\" title=\"Tests\">\u26a0\ufe0f</a></td>\n <td align=\"center\"><a href=\"http://chymera.eu/\"><img src=\"https://avatars.githubusercontent.com/u/950524?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Horea Christian</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=TheChymera\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://kaczmarj.github.io/\"><img src=\"https://avatars.githubusercontent.com/u/17690870?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Jakub Kaczmarzyk</b></sub></a><br /><a href=\"#infra-kaczmarj\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">\ud83d\ude87</a></td>\n </tr>\n <tr>\n <td align=\"center\"><a href=\"https://github.com/jokedurnez\"><img src=\"https://avatars.githubusercontent.com/u/7630327?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Joke Durnez</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=jokedurnez\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"http://jasmainak.github.io/\"><img src=\"https://avatars.githubusercontent.com/u/15852194?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Mainak Jas</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=jasmainak\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=jasmainak\" title=\"Tests\">\u26a0\ufe0f</a> <a href=\"#ideas-jasmainak\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Ajasmainak\" title=\"Reviewed Pull Requests\">\ud83d\udc40</a> <a href=\"#userTesting-jasmainak\" title=\"User Testing\">\ud83d\udcd3</a></td>\n <td align=\"center\"><a href=\"http://fair.dei.unipd.it/marco-castellaro\"><img src=\"https://avatars.githubusercontent.com/u/5088923?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Marco Castellaro</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=marcocastellaro\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=marcocastellaro\" title=\"Tests\">\u26a0\ufe0f</a></td>\n <td align=\"center\"><a href=\"https://github.com/MaxvandenBoom\"><img src=\"https://avatars.githubusercontent.com/u/43676624?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Max</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=MaxvandenBoom\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3AMaxvandenBoom\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n <td align=\"center\"><a href=\"http://psychoinformatics.de/\"><img src=\"https://avatars.githubusercontent.com/u/136479?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Michael Hanke</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=mih\" title=\"Documentation\">\ud83d\udcd6</a></td>\n <td align=\"center\"><a href=\"https://github.com/naveau\"><img src=\"https://avatars.githubusercontent.com/u/1488318?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Mikael Naveau</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=naveau\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://github.com/nellh\"><img src=\"https://avatars.githubusercontent.com/u/11369795?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Nell Hardcastle</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=nellh\" title=\"Code\">\ud83d\udcbb</a> <a href=\"#ideas-nellh\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"#infra-nellh\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">\ud83d\ude87</a> <a href=\"#question-nellh\" title=\"Answering Questions\">\ud83d\udcac</a> <a href=\"https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Anellh\" title=\"Reviewed Pull Requests\">\ud83d\udc40</a></td>\n </tr>\n <tr>\n <td align=\"center\"><a href=\"https://github.com/ntraut\"><img src=\"https://avatars.githubusercontent.com/u/22977927?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Nicolas Traut</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=ntraut\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://www.linkedin.com/in/parul-sethi\"><img src=\"https://avatars.githubusercontent.com/u/11822050?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Parul Sethi</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=parulsethi\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=parulsethi\" title=\"Tests\">\u26a0\ufe0f</a></td>\n <td align=\"center\"><a href=\"https://github.com/patsycle\"><img src=\"https://avatars.githubusercontent.com/u/41481345?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Patricia Clement</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=patsycle\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://remi-gau.github.io/\"><img src=\"https://avatars.githubusercontent.com/u/6961185?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Remi Gau</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=Remi-Gau\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=Remi-Gau\" title=\"Documentation\">\ud83d\udcd6</a> <a href=\"#userTesting-Remi-Gau\" title=\"User Testing\">\ud83d\udcd3</a></td>\n <td align=\"center\"><a href=\"https://hoechenberger.net/\"><img src=\"https://avatars.githubusercontent.com/u/2046265?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Richard H\u00f6chenberger</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=hoechenberger\" title=\"Code\">\ud83d\udcbb</a> <a href=\"#userTesting-hoechenberger\" title=\"User Testing\">\ud83d\udcd3</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=hoechenberger\" title=\"Tests\">\u26a0\ufe0f</a> <a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3Ahoechenberger\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n <td align=\"center\"><a href=\"https://github.com/robertoostenveld\"><img src=\"https://avatars.githubusercontent.com/u/899043?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Robert Oostenveld</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=robertoostenveld\" title=\"Code\">\ud83d\udcbb</a> <a href=\"#ideas-robertoostenveld\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3Arobertoostenveld\" title=\"Bug reports\">\ud83d\udc1b</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=robertoostenveld\" title=\"Tests\">\u26a0\ufe0f</a></td>\n <td align=\"center\"><a href=\"https://github.com/SetCodesToFire\"><img src=\"https://avatars.githubusercontent.com/u/25459509?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Rohan Goyal</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=SetCodesToFire\" title=\"Code\">\ud83d\udcbb</a></td>\n </tr>\n <tr>\n <td align=\"center\"><a href=\"https://github.com/rwblair\"><img src=\"https://avatars2.githubusercontent.com/u/14927911?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Ross Blair</b></sub></a><br /><a href=\"#maintenance-rwblair\" title=\"Maintenance\">\ud83d\udea7</a> <a href=\"#ideas-rwblair\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=rwblair\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3Arwblair\" title=\"Bug reports\">\ud83d\udc1b</a> <a href=\"#infra-rwblair\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">\ud83d\ude87</a> <a href=\"#projectManagement-rwblair\" title=\"Project Management\">\ud83d\udcc6</a> <a href=\"#question-rwblair\" title=\"Answering Questions\">\ud83d\udcac</a> <a href=\"https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Arwblair\" title=\"Reviewed Pull Requests\">\ud83d\udc40</a> <a href=\"#tool-rwblair\" title=\"Tools\">\ud83d\udd27</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=rwblair\" title=\"Tests\">\u26a0\ufe0f</a></td>\n <td align=\"center\"><a href=\"http://www.poldracklab.org/\"><img src=\"https://avatars.githubusercontent.com/u/871056?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Russ Poldrack</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=poldrack\" title=\"Code\">\ud83d\udcbb</a> <a href=\"#financial-poldrack\" title=\"Financial\">\ud83d\udcb5</a> <a href=\"#fundingFinding-poldrack\" title=\"Funding Finding\">\ud83d\udd0d</a></td>\n <td align=\"center\"><a href=\"http://soichi.us/\"><img src=\"https://avatars.githubusercontent.com/u/923896?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Soichi Hayashi</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3Asoichih\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n <td align=\"center\"><a href=\"https://www.stefanappelhoff.com\"><img src=\"https://avatars.githubusercontent.com/u/9084751?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Stefan Appelhoff</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3Asappelhoff\" title=\"Bug reports\">\ud83d\udc1b</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=sappelhoff\" title=\"Code\">\ud83d\udcbb</a> <a href=\"#data-sappelhoff\" title=\"Data\">\ud83d\udd23</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=sappelhoff\" title=\"Documentation\">\ud83d\udcd6</a> <a href=\"#example-sappelhoff\" title=\"Examples\">\ud83d\udca1</a> <a href=\"#ideas-sappelhoff\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"#infra-sappelhoff\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">\ud83d\ude87</a> <a href=\"#maintenance-sappelhoff\" title=\"Maintenance\">\ud83d\udea7</a> <a href=\"#mentoring-sappelhoff\" title=\"Mentoring\">\ud83e\uddd1\u200d\ud83c\udfeb</a> <a href=\"#question-sappelhoff\" title=\"Answering Questions\">\ud83d\udcac</a> <a href=\"https://github.com/bids-standard/bids-validator/pulls?q=is%3Apr+reviewed-by%3Asappelhoff\" title=\"Reviewed Pull Requests\">\ud83d\udc40</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=sappelhoff\" title=\"Tests\">\u26a0\ufe0f</a> <a href=\"#tutorial-sappelhoff\" title=\"Tutorials\">\u2705</a> <a href=\"#talk-sappelhoff\" title=\"Talks\">\ud83d\udce2</a> <a href=\"#userTesting-sappelhoff\" title=\"User Testing\">\ud83d\udcd3</a></td>\n <td align=\"center\"><a href=\"https://github.com/suyashdb\"><img src=\"https://avatars.githubusercontent.com/u/11152799?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Suyash </b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=suyashdb\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://github.com/tsalo\"><img src=\"https://avatars.githubusercontent.com/u/8228902?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Taylor Salo</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=tsalo\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://github.com/olgn\"><img src=\"https://avatars.githubusercontent.com/u/8853289?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Teal Hobson-Lowther</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=olgn\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=olgn\" title=\"Tests\">\u26a0\ufe0f</a></td>\n </tr>\n <tr>\n <td align=\"center\"><a href=\"https://github.com/riddlet\"><img src=\"https://avatars.githubusercontent.com/u/4789331?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Travis Riddle</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/issues?q=author%3Ariddlet\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n <td align=\"center\"><a href=\"https://github.com/VisLab\"><img src=\"https://avatars.githubusercontent.com/u/1189050?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>VisLab</b></sub></a><br /><a href=\"#ideas-VisLab\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=VisLab\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://github.com/wazeerzulfikar\"><img src=\"https://avatars.githubusercontent.com/u/15856554?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Wazeer Zulfikar</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=wazeerzulfikar\" title=\"Documentation\">\ud83d\udcd6</a></td>\n <td align=\"center\"><a href=\"https://github.com/yarikoptic\"><img src=\"https://avatars.githubusercontent.com/u/39889?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>Yaroslav Halchenko</b></sub></a><br /><a href=\"#ideas-yarikoptic\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=yarikoptic\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=yarikoptic\" title=\"Documentation\">\ud83d\udcd6</a> <a href=\"#userTesting-yarikoptic\" title=\"User Testing\">\ud83d\udcd3</a></td>\n <td align=\"center\"><a href=\"https://github.com/constellates\"><img src=\"https://avatars.githubusercontent.com/u/4325905?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>constellates</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=constellates\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=constellates\" title=\"Tests\">\u26a0\ufe0f</a></td>\n <td align=\"center\"><a href=\"https://github.com/dewarrn1\"><img src=\"https://avatars.githubusercontent.com/u/1322751?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>dewarrn1</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=dewarrn1\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://github.com/dkp\"><img src=\"https://avatars.githubusercontent.com/u/965184?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>dkp</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=dkp\" title=\"Code\">\ud83d\udcbb</a></td>\n </tr>\n <tr>\n <td align=\"center\"><a href=\"https://github.com/MatthewZito\"><img src=\"https://avatars.githubusercontent.com/u/47864657?v=4?s=50\" width=\"50px;\" alt=\"\"/><br /><sub><b>goldmund</b></sub></a><br /><a href=\"https://github.com/bids-standard/bids-validator/commits?author=MatthewZito\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/bids-standard/bids-validator/commits?author=MatthewZito\" title=\"Tests\">\u26a0\ufe0f</a></td>\n </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n## Use\n\n### API\n\nThe BIDS Validator has one primary method that takes a directory as either a\npath to the directory (node) or the object given by selecting a directory with a\nfile input (browser), an options object, and a callback.\n\nAvailable options include:\n\n- ignoreWarnings - (boolean - defaults to false)\n- ignoreNiftiHeaders - (boolean - defaults to false)\n\nFor example:\n\n`validate.BIDS(directory, {ignoreWarnings: true}, function (issues, summary) {console.log(issues.errors, issues.warnings);});`\n\nIf you would like to test individual files you can use the file specific checks\nthat we expose.\n\n- validate.BIDS()\n- validate.JSON()\n- validate.TSV()\n- validate.NIFTI()\n\nAdditionally you can reformat stored errors against a new config using `validate.reformat()`\n\n### .bidsignore\n\nOptionally one can include a `.bidsignore` file in the root of the dataset. This\nfile lists patterns (compatible with the [.gitignore syntax](https://git-scm.com/docs/gitignore))\ndefining files that should be ignored by the validator. This option is useful\nwhen the validated dataset includes file types not yet supported by BIDS\nspecification.\n\n```Text\n*_not_bids.txt\nextra_data/\n```\n\n### Configuration\n\nYou can configure the severity of errors by passing a json configuration file\nwith a `-c` or `--config` flag to the command line interface or by defining a\nconfig object on the options object passed during javascript usage.\n\nIf no path is specified a default path of `.bids-validator-config.json` will be used. You can add this file to your dataset to share dataset specific validation configuration. To disable this behavior use `--no-config` and the default configuration will be used.\n\nThe basic configuration format is outlined below. All configuration is optional.\n\n```JSON\n{\n\t\"ignore\": [],\n\t\"warn\": [],\n\t\"error\": [],\n\t\"ignoredFiles\": []\n}\n```\n\n`ignoredFiles` takes a list of file paths or glob patterns you'd like to ignore.\nLets say we want to ignore all files and sub-directory under `/derivatives/`.\n**This is not the same syntax as used in the .bidsignore file**\n\n```JSON\n{\n\t\"ignoredFiles\": [\"/derivatives/**\"]\n}\n```\n\nNote that adding two stars `**` in path makes validator recognize all files and\nsub-dir to be ignored.\n\n`ignore`, `warn`, and `error` take lists of issue codes or issue keys and change\nthe severity of those issues so they are either ignored or reported as warnings\nor errors. You can find a list of all available issues at\n[utils/issues/list](https://github.com/bids-standard/bids-validator/blob/master/bids-validator/utils/issues/list.js).\n\nSome issues may be ignored by default, but can be elevated to warnings or errors.\nThese provide a way to check for common things that are more specific than BIDS\ncompatibility. An example is a check for the presence of a T1w modality. The\nfollowing would raise an error if no T1W image was found in a dataset.\n\n```JSON\n{\n\t\"error\": [\"NO_T1W\"]\n}\n```\n\nIn addition to issue codes and keys these lists can also contain objects with\nand \"and\" or \"or\" properties set to arrays of codes or keys. These allow some\nlevel of conditional logic when configuring issues. For example:\n\n```JSON\n{\n\t\"ignore\": [\n\t\t{\n\t\t\t\"and\": [\n\t\t\t\t\"ECHO_TIME_GREATER_THAN\",\n\t\t\t\t\"ECHO_TIME_NOT_DEFINED\"\n\t\t\t]\n\t\t}\n\t]\n}\n```\n\nIn the above example the two issues will only be ignored if both of them are\ntriggered during validation.\n\n```JSON\n{\n\t\"ignore\": [\n\t\t{\n\t\t\t\"and\": [\n\t\t\t\t\"ECHO_TIME_GREATER_THAN\",\n\t\t\t\t\"ECHO_TIME_NOT_DEFINED\"\n\t\t\t\t{\n\t\t\t\t\t\"or\": [\n\t\t\t\t\t\t\"ECHO_TIME1-2_NOT_DEFINED\",\n\t\t\t\t\t\t\"ECHO_TIME_MUST_DEFINE\"\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t]\n}\n```\n\nAnd in this example the listed issues will only be ignored if\n`ECHO_TIME_GREATER_THAN`, `ECHO_TIME_NOT_DEFINED` and either\n`ECHO_TIME1-2_NOT_DEFINED` or `ECHO_TIME_MUST_DEFINE` are triggered during\nvalidation.\n\n\"or\" arrays are not supported at the lowest level because it wouldn't add any\nfunctionality. For example the following is not supported.\n\n```JSON\n{\n\t\"ignore\": [\n\t\t{\n\t\t\t\"or\": [\n\t\t\t\t\"ECHO_TIME_GREATER_THAN\",\n\t\t\t\t\"ECHO_TIME_NOT_DEFINED\"\n\t\t\t]\n\t\t}\n\t]\n}\n```\n\nbecause it would be functionally the same as this:\n\n```JSON\n{\n\t\"ignore\": [\n\t\t\"ECHO_TIME_GREATER_THAN\",\n\t\t\"ECHO_TIME_NOT_DEFINED\"\n\t]\n}\n```\n\nFor passing a configuration while using the bids-validator on the command line,\nyou can use the following style to for example ignore empty\nfile errors (99) and files that cannot be read (44):\n\n```\nbids-validator --config.ignore=99 --config.ignore=44 path/to/bids/dir\n```\n\nThis style of use puts limits on what configuration you can require, so for\ncomplex scenarios, we advise users to create a dedicated configuration file with\ncontents as described above.\n\n### In the Browser\n\nThe BIDS Validator currently works in the browser with [browserify](https://browserify.org/)\nor [webpack](https://webpack.js.org/). You can add it to a project by cloning\nthe validator and requiring it with browserify syntax\n`const validate = require('bids-validator');` or an ES2015 webpack import\n`import validate from 'bids-validator'`.\n\n### On the Server\n\nThe BIDS validator works like most npm packages. You can install it by running\n`npm install bids-validator`.\n\n### Through Command Line\n\nIf you install the bids validator globally by using `npm install -g bids-validator`\nyou will be able to use it as a command line tool. Once installed you should be\nable to run `bids-validator /path/to/your/bids/directory` and see any validation\nissues logged to the terminal. Run `bids-validator` without a directory path to\nsee available options.\n\n## Docker image\n\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/bids/validator?label=docker)](https://hub.docker.com/r/bids/validator)\n\nTo use bids validator with [docker](https://www.docker.com/), you simply need to\n[install docker](https://docs.docker.com/install/) on your system.\n\nAnd then from a terminal run:\n\n- `docker run -ti --rm bids/validator --version` to print the version of the\n docker image\n- `docker run -ti --rm bids/validator --help` to print the help\n- `docker run -ti --rm -v /path/to/data:/data:ro bids/validator /data`\n to validate the dataset `/path/to/data` on your host machine\n\nSee here for a brief explanation of the commands:\n\n- `docker run` is the command to tell docker to run a certain docker image,\n usually taking the form `docker run <IMAGENAME> <COMMAND>`\n- the `-ti` flag means the inputs are accepted and outputs are printed to the\n terminal\n- the `--rm` flag means that the state of the docker container is not saved\n after it has run\n- the `-v` flag is adding your local data to the docker container\n ([bind-mounts](https://docs.docker.com/storage/bind-mounts/)). Importantly,\n the input after the `-v` flag consists of three fields separated colons: `:`\n - the first field is the path to the directory on the host machine:\n `/path/to/data`\n - the second field is the path where the directory is mounted in the\n container\n - the third field is optional. In our case, we use `ro` to specify that the\n mounted data is _read only_\n\n## Python Library\n\n[![PyPI version](https://badge.fury.io/py/bids-validator.svg)](https://badge.fury.io/py/bids-validator)\n[![Conda version](https://img.shields.io/conda/vn/conda-forge/bids-validator)](https://anaconda.org/conda-forge/bids-validator)\n\nThere are is a limited library of helper functions written in Python. The main function\ndetermines if a file extension is compliant with the BIDS specification. You can find\nthe available functions in the library, as well as their descriptions,\n[here](https://github.com/bids-standard/bids-validator/blob/master/bids-validator/bids_validator/bids_validator.py).\nTo install, run `pip install -U bids_validator` (requires python and pip) or\n`conda install bids-validator` (requires a Conda environment).\n\n### Example\n\n```Python\nfrom bids_validator import BIDSValidator\nvalidator = BIDSValidator()\nfilepaths = [\"/sub-01/anat/sub-01_rec-CSD_T1w.nii.gz\", \"/sub-01/anat/sub-01_acq-23_rec-CSD_T1w.exe\"]\nfor filepath in filepaths:\n print(validator.is_bids(filepath)) # will print True, and then False\n```\n\nNote, the file path must be relative to the root of the BIDS dataset, and a \nleading forward slash `/` must be added to the file path.\n\n## Development\n\nTo develop locally, clone the project and run `npm install` from the project\nroot. This will install external dependencies. If you wish to install\n`bids-validator` globally (so that you can run it in other folders), use the\nfollowing command to install it globally: `cd bids-validator && npm install -g` (for windows users, if in a different drive add /d, e.g. `cd /d F:\\bids-validator && npm install -g`)\n\nPlease see the [CONTRIBUTING.md](../CONTRIBUTING.md)\nfor additional details.\n\n### Bundling\n\nbids-validator is bundled with esbuild. While developing, the script `bids-validator/bin/bids-validator` will automatically bundle the project each time it is run. To test a build without publishing it `npm -w bids-validator run build`. This will generate a bids-validator/dist directory containing the local build and `bids-validator/bin/bids-validator` will use this build. To return to automatic bundling on each run, remove the dist directory.\n\n### Running Locally in a Browser\n\nA note about OS X, the dependencies for the browser require a npm package called\nnode-gyp which needs xcode to be installed in order to be compiled.\n\n1. The browser version of `bids-validator` lives in the repo subdirectory\n `/bids-validator-web`. It is a [React.js](https://reactjs.org/) application\n that uses the [next.js](https://nextjs.org/) framework.\n2. To develop `bids-validator` and see how it will act in the browser, simply run\n `npm run web-dev` in the project root and navigate to `localhost:3000`.\n3. In development mode, changes to the codebase will trigger rebuilds of the application\n automatically.\n4. Changes to the `/bids-validator` in the codebase will also be reflected in the\n web application.\n5. Tests use the [Jest](https://jestjs.io/index.html) testing library and should be developed in `/bids-validator-web/tests`.\n We can always use more tests, so please feel free to contribute a test that reduces the chance\n of any bugs you fix!\n6. To ensure that the web application compiles successfully in production, run `npm run web-export`\n\n### Testing\n\nIf it's your first time running tests, first use the command `git submodule update --init --depth 1` to pull the test example data. This repo contains the [bids-examples github repository](https://github.com/bids-standard/bids-examples) as a [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules).\n\nTo start the test suite run `npm run test` from the project root. `npm run test -- --watch`\nis useful to run tests while making changes. A coverage report is available with\n`npm run coverage`.\n\nTo run the linter which checks code conventions run `npm run lint`.\n\n### Install globally from a development branch\n\nGlobal installs are not recommended for development because of the possibility of package conflicts with other Node.js projects. If you do need to test with a global install from a development tree, follow these steps to generate the NPM package without publishing it and install the package locally.\n\n1. `npm -w bids-validator run build`\n2. `npm -w bids-validator pack`\n3. `npm install -g bids-validator-*.tgz`\n\n### Publishing\n\nPublishing is done with [Lerna](https://github.com/lerna/lerna). Use the command `npx lerna publish` and follow instructions to set a new version.\n\nUsing lerna publish will create a git commit with updated version information and create a version number tag for it, push the tag to GitHub, then publish to NPM and PyPI. The GitHub release is manual following that.\n\n## Acknowledgments\n\nMany contributions to the `bids-validator` were done by members of the\nBIDS community. See the\n[list of contributors](https://bids-specification.readthedocs.io/en/stable/99-appendices/01-contributors.html).\n\nA large part of the development of `bids-validator` is currently done by\n[Squishymedia](https://squishymedia.com/), who are in turn financed through\ndifferent grants offered for the general development of BIDS. See the list\nbelow.\n\nDevelopment and contributions were supported through the following federally\nfunded projects/grants:\n\n- [BIDS Derivatives (NIMH: R24MH114705, PI: Poldrack)](https://grantome.com/grant/NIH/R24-MH114705-01)\n- [OpenNeuro (NIMH: R24MH117179, PI: Poldrack)](https://grantome.com/grant/NIH/R24-MH117179-01)\n- [Spokes: MEDIUM: WEST (NSF: 1760950, PI: Poldrack & Gorgolewski)](https://grantome.com/grant/NSF/IIS-1760950)\n- [ReproNim](http://repronim.org) [(NIH-NIBIB P41 EB019936, PI: Kennedy)](https://projectreporter.nih.gov/project_info_description.cfm?aid=8999833)\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Validator for the Brain Imaging Data Structure",
"version": "1.14.6",
"project_urls": {
"Homepage": "https://github.com/bids-standard/bids-validator"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "da76018bd9403abe758be9c0f7f7047b40d834a4d88f29301d1ab9f9a6cbe063",
"md5": "708e44a710c47b44843d3a434ac60c00",
"sha256": "e7194193d97bedc6fb173b8606f6d3ed5a467c141f01bca11cd0f38ad1717941"
},
"downloads": -1,
"filename": "bids_validator-1.14.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "708e44a710c47b44843d3a434ac60c00",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 22744,
"upload_time": "2024-05-09T21:23:36",
"upload_time_iso_8601": "2024-05-09T21:23:36.831748Z",
"url": "https://files.pythonhosted.org/packages/da/76/018bd9403abe758be9c0f7f7047b40d834a4d88f29301d1ab9f9a6cbe063/bids_validator-1.14.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "763e340bbc48508e9de0cc68d26b38dad5d3acb7431791c5d15c51022d259d48",
"md5": "dd1a3cd96a6a40956df174a6c7a9f3be",
"sha256": "df2b6b5d1aaad61d34ccad0494f2ed73ce3082825ada31954c4e14c2538d485c"
},
"downloads": -1,
"filename": "bids_validator-1.14.6.tar.gz",
"has_sig": false,
"md5_digest": "dd1a3cd96a6a40956df174a6c7a9f3be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 37642,
"upload_time": "2024-05-09T21:23:45",
"upload_time_iso_8601": "2024-05-09T21:23:45.082095Z",
"url": "https://files.pythonhosted.org/packages/76/3e/340bbc48508e9de0cc68d26b38dad5d3acb7431791c5d15c51022d259d48/bids_validator-1.14.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-09 21:23:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bids-standard",
"github_project": "bids-validator",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"circle": true,
"lcname": "bids-validator"
}