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.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

mite_extras-1.2.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mite_extras-1.2.0.tar.gz
  • Upload date:
  • Size: 15.0 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.0.tar.gz
Algorithm Hash digest
SHA256 6ac54d725e06eb5be345dbc843aedf66d34096a1047d1b7ac56f6dca2ab087d7
MD5 5c964886f4cb4af22eca008e59a69946
BLAKE2b-256 ef51da05f58e2fb10d6501dcfe836c2b7b4377cfa8eafafa00a827e9f1035071

See more details on using hashes here.

Provenance

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

Publisher: publish_pypi.yml on mite-standard/mite_extras

Attestations:

File details

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

File metadata

  • Download URL: mite_extras-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e9601cc6f97f458e2d4f57c7e571311bf6dd7e691ce2f8efa42586f93a59b39
MD5 0b374195ddab8c1f369c8ff192dc6030
BLAKE2b-256 c1c76273dbf031a567c67006e5d78c1b834a03d7fd17966c55223bdc5a4d224a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mite_extras-1.2.0-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