Skip to main content

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

  1. Make sure you have poetry installed
  2. Run make install to install the poetry environment
  3. Run make run_small_tests to see if it worked

The tool is currently divided in the following files (basic layout):

  • src/matrix_validator/cli.py contains all CLI methods (click-based) and should not contain any code other than CLI boilerplate (in particular no IO)
  • src/matrix_validator/validator.py contains the abstract validation class.
  • src/matrix_validator/datamodels.py contains the edge and nodes schemas.
  • src/matrix_validator/util.py contains 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 implementation
    • src/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)

Source distribution for matrix-validator 0.0.6
File Size Uploaded
matrix_validator-0.0.6.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for matrix-validator 0.0.6
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page