Skip to main content

PSI-MOD validation and curation tools for quality control and data management

Project description

PSI-MOD Curator

Validation and curation tools for the PSI-MOD protein modification ontology. Focuses on structure validation using RDKit, cross-reference checking, and mass/formula consistency.

Installation

uvx psimod-validator

or

pipx run psimod-validator

Usage

Command Line

# Validate entire ontology
psimod-validator validate PSI-MOD.obo

# Validate and auto-fix issues (writes PSI-MOD.fixed.obo)
psimod-validator validate PSI-MOD.obo --fix

# Strict mode (warnings become errors)
psimod-validator validate PSI-MOD.obo --strict

# JSON or Markdown output
psimod-validator validate PSI-MOD.obo --format json -o report.json

# Check specific terms
psimod-validator check --ontology PSI-MOD.obo MOD:00046 MOD:00047

# Verify cross-references online (slow)
psimod-validator validate PSI-MOD.obo --check-online

Python API

from psimod_validator import PsiModValidator

validator = PsiModValidator("PSI-MOD.obo")
report = validator.validate_all()

print(f"Errors: {report.error_count}")
print(f"Warnings: {report.warning_count}")
print(f"Fixable: {len(report.fixable_issues)}")

for issue in report.errors:
    print(f"{issue.mod_id}: [{issue.category}] {issue.message}")

Validation Rules

Category What it checks Severity
SMILES Parseable by RDKit, canonical form, valence errors, undefined stereocenters ERROR / WARNING
Backbone Dummy atom patterns via SMARTS, term_spec consistency WARNING / ERROR
Mass SMILES-computed mass/formula vs MassMono/Formula annotations ERROR (fixable)
Charge RDKit formal charge vs FormalCharge annotation ERROR (fixable)
Xref Unimod/UniProt PTM/Origin format, optional online verification ERROR / WARNING
Structure Term name, definition, parent relationships ERROR / WARNING / INFO

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

psimod_validator-0.1.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

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

psimod_validator-0.1.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file psimod_validator-0.1.0.tar.gz.

File metadata

  • Download URL: psimod_validator-0.1.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for psimod_validator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31ac7f68b5b4ef653d458eb69a5dffda722496ceedead9271fac5338bdc58d4f
MD5 7273a483e7ffbf91e3d5b6f003a46bdd
BLAKE2b-256 a07d1ca2147c0a63df3862c05c8463d2b1989ec8af5f2c0fdf1386c039e5a17b

See more details on using hashes here.

Provenance

The following attestation bundles were made for psimod_validator-0.1.0.tar.gz:

Publisher: release.yml on HUPO-PSI/psi-mod-validator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file psimod_validator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for psimod_validator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f53baf2f0ef95fe1e0a49cdada4e9312cb9a347c6ccb5066956d5f24caad45d
MD5 9daf2b06d934c41a8c7a562b0ee8efe5
BLAKE2b-256 fa6f1c032deed61be81618f2d97e3e4b34ba8992b780652418e372646e35dfb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for psimod_validator-0.1.0-py3-none-any.whl:

Publisher: release.yml on HUPO-PSI/psi-mod-validator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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