Skip to main content

matrix-validator

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matrix_validator-0.0.4.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matrix_validator-0.0.4-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file matrix_validator-0.0.4.tar.gz.

File metadata

  • Download URL: matrix_validator-0.0.4.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for matrix_validator-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3b5dafe1b86bce867e7db052195fd179d93f5a6fbc542596dadd797cdc275ac4
MD5 e00516b470593b5af4414aef6c1bbb7d
BLAKE2b-256 e6684e59923c27d392490545a4a069929aeb27ceefd7f371a54ce49aa0f2e100

See more details on using hashes here.

File details

Details for the file matrix_validator-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for matrix_validator-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7cdb982172ffbc95407c1f158ed168a958c0f422a5b16efa84103c6b9adcca32
MD5 b30086bb3483f1538a665082205110db
BLAKE2b-256 e847e1457ecbbd4a3d83c8a37dd058b04821d4a4262f124a970bc4ba831a2db4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page