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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31ac7f68b5b4ef653d458eb69a5dffda722496ceedead9271fac5338bdc58d4f
|
|
| MD5 |
7273a483e7ffbf91e3d5b6f003a46bdd
|
|
| BLAKE2b-256 |
a07d1ca2147c0a63df3862c05c8463d2b1989ec8af5f2c0fdf1386c039e5a17b
|
Provenance
The following attestation bundles were made for psimod_validator-0.1.0.tar.gz:
Publisher:
release.yml on HUPO-PSI/psi-mod-validator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
psimod_validator-0.1.0.tar.gz -
Subject digest:
31ac7f68b5b4ef653d458eb69a5dffda722496ceedead9271fac5338bdc58d4f - Sigstore transparency entry: 1357179307
- Sigstore integration time:
-
Permalink:
HUPO-PSI/psi-mod-validator@03960b7f5e6939f52c3354a216809ed12e8f55fd -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/HUPO-PSI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@03960b7f5e6939f52c3354a216809ed12e8f55fd -
Trigger Event:
release
-
Statement type:
File details
Details for the file psimod_validator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: psimod_validator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f53baf2f0ef95fe1e0a49cdada4e9312cb9a347c6ccb5066956d5f24caad45d
|
|
| MD5 |
9daf2b06d934c41a8c7a562b0ee8efe5
|
|
| BLAKE2b-256 |
fa6f1c032deed61be81618f2d97e3e4b34ba8992b780652418e372646e35dfb5
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
psimod_validator-0.1.0-py3-none-any.whl -
Subject digest:
5f53baf2f0ef95fe1e0a49cdada4e9312cb9a347c6ccb5066956d5f24caad45d - Sigstore transparency entry: 1357179315
- Sigstore integration time:
-
Permalink:
HUPO-PSI/psi-mod-validator@03960b7f5e6939f52c3354a216809ed12e8f55fd -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/HUPO-PSI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@03960b7f5e6939f52c3354a216809ed12e8f55fd -
Trigger Event:
release
-
Statement type: