bids/validator

By bids

โ€ขUpdated about 2 months ago

Brain Imaging Data Structure Validator

Image
4

10K+

bids/validator repository overview

CircleCI Gitlab pipeline status Codecov DOI

โ BIDS-Validator

โ Quickstart

  1. Web version:
    1. Open Google Chromeโ  or Mozilla Firefoxโ  (currently the only supported browsers)
    2. Go to http://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 โ  and report the error at https://github.com/bids-standard/bids-validator/issuesโ .
  2. Command line version:
    1. Install Node.jsโ  (at least version 10.11.0)
    2. Update npm to be at least version 7 (npm install --global npm@^7)
    3. From a terminal run npm install -g bids-validator
    4. Run bids-validator to start validating datasets.
  3. Docker
    1. Install Docker
    2. 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.
  4. Python Library:
    1. Install Pythonโ 
    2. Install Pipโ  package manager for Python, if not already installed.
    3. From a terminal run pip install bids_validator to acquire the BIDS Validator PyPi packageโ 
    4. Open a Python terminal and type: python
    5. Import the BIDS Validator package from bids_validator import BIDSValidator
    6. Check if a file is BIDS compatible BIDSValidator().is_bids('path/to/a/bids/file')

โ 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โ . 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

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โ .


Adam Liโ 

๐Ÿ’ปโ  โš ๏ธโ  ๐Ÿ““โ  ๐Ÿ›โ 

Adam Thomasโ 

๐Ÿ“–โ 

Alexander Jonesโ 

๐Ÿ’ปโ  โš ๏ธโ  ๐Ÿค”โ 

Chris Gorgolewskiโ 

๐Ÿ›โ  ๐Ÿ’ปโ  ๐Ÿ”ฃโ  ๐Ÿ“–โ  ๐Ÿ’กโ  ๐Ÿค”โ  ๐Ÿš‡โ  ๐Ÿšงโ  ๐Ÿง‘โ€๐Ÿซโ  ๐Ÿ’ฌโ  ๐Ÿ‘€โ  โš ๏ธโ  โœ…โ  ๐Ÿ“ขโ  ๐Ÿ““โ 

Chris Holdgrafโ 

๐Ÿ’ปโ 

Chris Markiewiczโ 

๐Ÿ’ปโ  โš ๏ธโ  ๐Ÿค”โ  ๐Ÿ›โ  ๐Ÿ’ฌโ  ๐Ÿ”งโ  ๐Ÿšงโ 

David Nishikawaโ 

๐Ÿ’ปโ  โš ๏ธโ 

Dimitri Papadopoulos Orfanosโ 

๐Ÿ’ปโ 

Duncan Macleodโ 

๐Ÿš‡โ 

Franklin Feingoldโ 

๐Ÿ“–โ 

Gregory noackโ 

๐Ÿ’ปโ  โš ๏ธโ 

Horea Christianโ 

๐Ÿ’ปโ 

Jakub Kaczmarzykโ 

๐Ÿš‡โ 

Joke Durnezโ 

๐Ÿ’ปโ 

Mainak Jasโ 

๐Ÿ’ปโ  โš ๏ธโ  ๐Ÿค”โ  ๐Ÿ‘€โ  ๐Ÿ““โ 

Marco Castellaroโ 

๐Ÿ’ปโ  โš ๏ธโ 

Maxโ 

๐Ÿ’ปโ  ๐Ÿ›โ 

Michael Hankeโ 

๐Ÿ“–โ 

Mikael Naveauโ 

๐Ÿ’ปโ 

Nell Hardcastleโ 

๐Ÿ’ปโ  ๐Ÿค”โ  ๐Ÿš‡โ  ๐Ÿ’ฌโ  ๐Ÿ‘€โ 

Nicolas Trautโ 

๐Ÿ’ปโ 

Parul Sethiโ 

๐Ÿ’ปโ  โš ๏ธโ 

Patricia Clementโ 

๐Ÿ’ปโ 

Remi Gauโ 

๐Ÿ’ปโ  ๐Ÿ“–โ  ๐Ÿ““โ 

Richard Hรถchenbergerโ 

๐Ÿ’ปโ  ๐Ÿ““โ  โš ๏ธโ  ๐Ÿ›โ 

Robert Oostenveldโ 

๐Ÿ’ปโ  ๐Ÿค”โ  ๐Ÿ›โ  โš ๏ธโ 

Rohan Goyalโ 

๐Ÿ’ปโ 

Ross Blairโ 

๐Ÿšงโ  ๐Ÿค”โ  ๐Ÿ’ปโ  ๐Ÿ›โ  ๐Ÿš‡โ  ๐Ÿ“†โ  ๐Ÿ’ฌโ  ๐Ÿ‘€โ  ๐Ÿ”งโ  โš ๏ธโ 

Russ Poldrackโ 

๐Ÿ’ปโ  ๐Ÿ’ตโ  ๐Ÿ”โ 

Soichi Hayashiโ 

๐Ÿ›โ 

Stefan Appelhoffโ 

๐Ÿ›โ  ๐Ÿ’ปโ  ๐Ÿ”ฃโ  ๐Ÿ“–โ  ๐Ÿ’กโ  ๐Ÿค”โ  ๐Ÿš‡โ  ๐Ÿšงโ  ๐Ÿง‘โ€๐Ÿซโ  ๐Ÿ’ฌโ  ๐Ÿ‘€โ  โš ๏ธโ  โœ…โ  ๐Ÿ“ขโ  ๐Ÿ““โ 

Suyash โ 

๐Ÿ’ปโ 

Taylor Saloโ 

๐Ÿ’ปโ 

Teal Hobson-Lowtherโ 

๐Ÿ’ปโ  โš ๏ธโ 

Travis Riddleโ 

๐Ÿ›โ 

VisLabโ 

๐Ÿค”โ  ๐Ÿ’ปโ 

Wazeer Zulfikarโ 

๐Ÿ“–โ 

Yaroslav Halchenkoโ 

๐Ÿค”โ  ๐Ÿ’ปโ  ๐Ÿ“–โ  ๐Ÿ““โ 

constellatesโ 

๐Ÿ’ปโ  โš ๏ธโ 

dewarrn1โ 

๐Ÿ’ปโ 

dkpโ 

๐Ÿ’ปโ 

goldmundโ 

๐Ÿ’ปโ  โš ๏ธโ 

โ 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 a

Tag summary

Content type

Image

Digest

sha256:45ae3ad1dโ€ฆ

Size

55 MB

Last updated

about 2 months ago

docker pull bids/validator