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

Uploaded Source

Built Distribution

mite_extras-1.1.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mite_extras-1.1.0.tar.gz
  • Upload date:
  • Size: 15.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 84f34299e8499b1b0ecc5ba69fd4052c1f91545c1c4dcf0f008b1a6ad79f008a
MD5 341e22083332ba61b30b03460cb1ee77
BLAKE2b-256 a93775170959be364c1d18c7cd61c82ed01beae554cbc0829ccab856741b9f4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mite_extras-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8019c82a0adbd0377fc9eb0ebdadf72f76f2da993e86385769ffa2115e24bed5
MD5 273735e713b681b07ad03da33f861740
BLAKE2b-256 b2bfcfb1fa0b2273636b66be40641a55d606695d3b5a8cff36492dd74b44e734

See more details on using hashes here.

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