/AnDOChecker

Checks the validity of a directory with respect to the ANimal Data Organization (ANDO) specifications

Primary LanguagePythonMIT LicenseMIT

AnDOChecker

Checks the validity of a directory with respect to the ANimal Data Organization (AnDO) specifications

version

PyPI licenseGeneric badgemade-with-python

Table of Contents

Use

Clone

  • Clone this repo to your local machine using https://github.com/INT-NIT/AnDOChecker.git

General usage

usage: AnDOChecker.py [-h] [-v] path

positional arguments:
  path           Path to your folder

optional arguments:
  -h, --help     show this help message and exit
  -v, --verbose  increase output verbosity

Specific usage

$Python3 checker/AnDOChecker.py tests/ds001/data/Enya

OR verbose usage

$Python3 checker/AnDOChecker.py -v tests/ds001/data/Enya

Development

Testing usage

$cd checker/
$python3.5 -m unittest discover -v

Details

In checker folder :

  • file AnDOChecker.py is the main file
  • file AnDO_Error.py is the custom error exception file
  • file AnDO_Engine.py is the file that verify with the rules

In the rules folder :

  • session_rules.json regex for session rules
  • subject_rules.json regex for subject rules
  • source_rules.json regex for source rules