This repo contains all MassBank records and uses the Travis CI to validate the content of all records with the new Validator from MassBank-web.
To validate new record files locally please clone this repo. Under the .scripts
directory create the source tree of the MassBank-web project and compile it, because the validator program is needed.
You can use the following commands:
git clone --depth 1 -q https://github.com/MassBank/MassBank-web.git .scripts/MassBank-web
mvn -q -f .scripts/MassBank-web/MassBank-Project/MassBank-lib/pom.xml install
Now its possible to validate record files locally. validate.sh
supports validation of a single record file, several files as well as one or several directories containing record files, eg.
./.scripts/validate.sh AAFC
To validate the full date repository please use the validate_all_local.sh
script.
To submit data or to change existing records:
- Please fork this repo and make your changes or add new content.
- To enable automatic validation of records in a new subdirectory please run
./.scripts/pre-commit
or create a symlink/copy./.scripts/pre-commit
to.git/hooks/pre-commit
prior commiting the changes. - Commit and push your changes to your repo.
- Create a pull request.
Your pull request will be validated and you will receive a report whether your records meet the MassBank specs.
The preferred software to generate MassBank records is RMassBank. RMassBank is in continous development. Hence, use the latest version available, please.