Skip to main content

Parsing, conversion, and validation functionality for Minimum Information about a Tailoring Enzyme (MITE) files.

Project description

mite_extras

DOI PyPI version

This package contains functionality to validate entries of the Minimum Information about a Tailoring Enzyme (MITE) repository.

This includes:

  • Validation of the MITE json format (does the entry follow the mite_schema format)
  • Validation of reaction SMARTS (does the reaction SMARTS lead to the expected product when applied to a specified substrate)
  • Sanitation of SMILES and reaction SMARTS
  • Fetching of NCBI GenPept/UniProtKB IDs

When used as CLI, mite_extras can automatically update MITE entries (see below). However, it can also be used as a library (e.g. as done in mite_data).

For more information, see the README of the MITE-Standard organisation page.

Installation

Attention: this program has only been tested with Ubuntu Linux.

With pip from PyPI

  • Install with pip install mite_extras

With hatch from GitHub

  • Install python 3.12.x
  • Install hatch (e.g. with pipx install hatch)
  • Download or clone the repository
  • Run hatch -v env create

Quick Start: Example

Run from command line:

To validate MITE entries or update them to a new schema version (requires mite_extras to be installed via pip).

  • mite_extras -i input/ -o output/

Run with hatch:

Validate MITE entries or update them to a new schema version

  • hatch run mite_extras -i input/ -o output/

For devs

  • Install developer dependencies with hatch -v env create dev
  • Initialize pre-commit with hatch run dev:pre-commit install
  • Run tests with hatch run dev:pytest
  • Run CLI with hatch run dev:mite_extras and the appropriate options
  • If necessary, remove the environment again with hatch env remove dev

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

mite_extras-1.2.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

mite_extras-1.2.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file mite_extras-1.2.1.tar.gz.

File metadata

  • Download URL: mite_extras-1.2.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mite_extras-1.2.1.tar.gz
Algorithm Hash digest
SHA256 93bd5bf86b17483b1c008ba60a071b84b08b77e62bd7496ed8564d9c2d31fa12
MD5 b6098676b85b5a4efeb64b989a25d112
BLAKE2b-256 1b26f3be8eb11d77b33508b0d49acba340b8d117aa89cebe6262379f6df4ddc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mite_extras-1.2.1.tar.gz:

Publisher: publish_pypi.yml on mite-standard/mite_extras

Attestations:

File details

Details for the file mite_extras-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: mite_extras-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mite_extras-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d920fdd8c7ddc28017faaa4ba67b2f90bbc2356cc81e82c46e43af3ac4191ac0
MD5 f30382424b67014ff5d80bcf80e20859
BLAKE2b-256 ff232bf5d99e2745b31223cc41180535dd89f966aa1c04392963c8e2c6c3f128

See more details on using hashes here.

Provenance

The following attestation bundles were made for mite_extras-1.2.1-py3-none-any.whl:

Publisher: publish_pypi.yml on mite-standard/mite_extras

Attestations:

Supported by

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