MATRIX validator
A validation tool for KG edges and nodes in KGX format.
Users
Install the validator:
pip install matrix-validator
Run the validator:
matrix-validator python \
--report-dir tmp/ \
--edges abc_edges.tsv \
--nodes abc_nodes.tsv
Currently available options for validator are "pandera", "python" and "polars".
Getting started for Developers
- Make sure you have poetry installed
- Run
make installto install the poetry environment - Run
make run_small_teststo see if it worked
The tool is currently divided in the following files (basic layout):
src/matrix_validator/cli.pycontains all CLI methods (click-based) and should not contain any code other than CLI boilerplate (in particular no IO)src/matrix_validator/validator.pycontains the abstract validation class.src/matrix_validator/datamodels.pycontains the edge and nodes schemas.src/matrix_validator/util.pycontains any utility methods that we might need.- We currently experiment with a number of different implementations:
src/matrix_validator/validator_polars.py: A very efficient pure polars implementation.src/matrix_validator/validator_purepython.py: A pure python implementationsrc/matrix_validator/validator_schema.py: A schema-based validation approach based on LinkML generated pandera schemas.
Acknowledgements
This cookiecutter project was developed from the monarch-project-template template and will be kept up-to-date using cruft.
Metadata
Release files for matrix-validator 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| matrix_validator-0.0.6.tar.gz | 18.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| matrix_validator-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.5 kB
Release files / matrix_validator-0.0.6.tar.gz
| Download URL | matrix_validator-0.0.6.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17b14c066d3da74bfff87514fa9f1d261bcd09deb30ab0e7129801718922229f
|
|
BLAKE2b-256 checksum How to use checksums |
0340499b9a2af224f887bca71947bccf342365d76e73595c726339b258be4ff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|
Release files / matrix_validator-0.0.6-py3-none-any.whl
| Download URL | matrix_validator-0.0.6-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6eedda6e7428ab685a7b09df3505eaa91883018eea4005f884262c38a084f2b0
|
|
BLAKE2b-256 checksum How to use checksums |
60ab336cda28ad5e9d3d4124d7032734e6bfb2a43915a39a5541e182db922bef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|