dcat-ap-plus-proteomics
Glycoproteomics datasets in DCAT-AP-PLUS and Chem-DCAT-AP, searched across laboratories and annotated with refined triples.
Status: pre-release. The interface is not stable.
This repository takes the NIST Glycopeptide Abundance Distribution Spectra (GADS) libraries and carries them through five steps. There are 34 libraries from 13 laboratories, measuring viral and human glycoproteins.
- Extraction. A verified reader for the undocumented NIST binary format, and an audit of every stated mass against named conventions.
- Database search. Every peptide is located in a pinned reference database by sequence alone. Every distribution is searched against every other library with two independent determinations, one numerical (composition vectors) and one visual (rendered images and SSIM). An answer is licensed only when they agree; otherwise the search declines and says why.
- Schema. A LinkML extension of Chem-DCAT-AP with its generated OWL, SHACL and JSON-LD context, and a vocabulary for refined triples.
- Admission. Which metadata to save, computed rather than chosen (Sachikonye, Schema Admission). Context fields are scored by the pairs of distributions they tell apart. Distributions are linked across laboratories by eliminating contradicted candidates before ranking. Inside groups the context cannot tell apart, the index (compositions, a bar image, a droplet image) proposes new fields, admitted under six conditions beside random controls. Six goals derive what each schema still lacks.
- Result files. JSON-LD documents in the extension's vocabulary. Each holds a named graph per basis (stated, supplied, derived, refined, admitted), conforms to the shapes, and parses back to the same quads. The images, link decisions, field scores and admitted fields are in the file.
flowchart LR
nist[NIST GADS] --> read[read · audit] --> map[map by sequence] --> search[two determinations<br/>licence or decline] --> emit[named graphs] --> refine[refined triples] --> jsonld[JSON-LD]
map --> adm[field scores · links ·<br/>admitted slots · goals] --> emit
read --> img[bar · droplet images] --> adm
schema[LinkML schema] --> art[OWL · SHACL · context] --> jsonld
Install
pip install "dcat-ap-plus-proteomics[notebook]"
The wheel carries the Rust core and the 17 pinned reference sequences, so nothing needs compiling (wheels for Windows and Linux x86-64, Python 3.13). The notebook extra adds the linked charts (spectacular-charts), the query service (svar-query) and the notebook widget the views are drawn with. The notebook docs/notebooks/00-the-framework-in-one-pass.ipynb runs from the installed package alone; its last section asks UniProt through svar. Answers are written as SciDatS files with DCAT-AP-PLUS metadata (dcat_ap_plus_proteomics.exchange).
from dcat_ap_plus_proteomics.engine import Engine
engine = Engine() # the Rust core, in process
engine.peptide("R.FDNPVLPFnDGVYFASTEK.S")["mass"] # under the GADS conventions
Results
| records read and verified | 9,948 distributions, 158,058 peaks, 34 libraries |
| stated peptide masses explained | 9,948 of 9,948 (524 by a library writing convention) |
| peptides mapped by sequence | 1,262 of 1,271 exactly or by core |
| licensed cross-laboratory answers | 878, precision 79.2 % (chance 3.0 %) |
| declined answers | 9,070, each with its reason |
| cross-laboratory links, eliminate then rank | 4,643; none contradicted by a context field (ranking first: 7,526 at a contradicted site) |
| context cells, admitted slots | 1,874 cells; 14,855 slots individuate 9,910 distributions (context alone: 2,674) |
| producer as a stated field | decides insect-cell production with 0 errors; no context field or index feature does (best 1,064) |
| showcase result file | 44,087 quads, conforms to the shapes, round-trips |
| whole run, one result file per library | 34 files, 4,929,380 quads, every file conforms and round-trips (before the analysis graphs; to re-run) |
The surprises are as useful as the numbers. Laboratories number glycosites differently, by up to 696 residues. A stated peptide mass sometimes leaves out a residue. Confident cross-laboratory matches sometimes pair different proteins made the same way, because a distribution carries its producer's glycosylation as well as its site. Each of these is measured in docs/specification and listed with what can be done about it in 09 Findings.
| Where | What |
|---|---|
results/showcase/ |
the result file for two libraries, with its manifest |
results/evaluation/ |
summary.json and figures of the whole run |
artefacts/ |
generated OWL, SHACL and JSON-LD context |
src/dcat_ap_plus_proteomics/schema/ |
the LinkML schemas (proteomics.yaml, refined.yaml) |
results/admission/ |
field scores, joins, links, admitted slots, goals |
notebooks/ |
eleven notebooks of charts and workflow diagrams, one per part |
docs/specification/ |
rules, measurements and checks, one file per part |
docs/software/ |
what each command does, step by step |
Usage
Requires uv and the NIST GADS libraries (NISTMS-GADS folder), which are not redistributed here.
uv sync
export GADS_ROOT=/path/to/NISTMS-GADS
uv run dcat-ap-plus-proteomics search # ~17 min once; cached in build/ by run stage
uv run dcat-ap-plus-proteomics admit # results/admission/ (~15 min)
uv run dcat-ap-plus-proteomics emit # results/showcase/
uv run dcat-ap-plus-proteomics evaluate # results/evaluation/ (~13 min)
uv run dcat-ap-plus-proteomics artefacts # artefacts/
uv run dcat-ap-plus-proteomics catalogue --validate # results/full/, one file per library
Notebooks: uv run --group notebooks python notebooks/build.py (05–10 need only the committed results).
Without GADS_ROOT the default is the Lavoisier checkout this repository was developed in (python/data/nist/nistms-gads/NISTMS-GADS). The reference sequences are committed in src/dcat_ap_plus_proteomics/data/reference/; scripts/fetch_references.py re-fetches them.
Rust engine and TypeScript views
The mass computing is also in Rust, with views in TypeScript, as in the sibling dcat-ap-plus-metabolomics:
| Path | What |
|---|---|
crates/proteomics-core/ |
peptides under the GADS conventions, b/y ladders and the complementary-ion check, glycan compositions and the mass balance, tryptic digestion and sequons, glycosite networks and the GADS reader and audit |
crates/proteomics-cli/ |
the command proteomics: tool <name> answers one artefact request on standard input; proteomics tools lists them |
crates/proteomics-wasm/ |
the cores for JavaScript; a library is read from the bytes of its two files |
packages/proteomics/ |
@dcat-ap-plus/proteomics: typed wrapper, SVG views (glycosite network, annotated spectrum, coverage map, class shares) and demo/ |
src/dcat_ap_plus_proteomics/engine.py, protocol.py, views.py |
the Python client of the command and of the views |
The shared core ms-core is a git dependency on dcat-ap-plus-metabolomics, pinned in Cargo.lock. To build against a sibling checkout instead, write paths = ["../dcat-ap-plus-metabolomics/crates/ms-core"] into .cargo/config.toml, which is gitignored. A paths override leaves Cargo.lock unchanged. Notebooks 11 and 12 use the engine. The Rust audit agrees with the Python one record by record.
Development
The layout, tooling and documentation come from the opensourcelab copier-python template (.copier-answers.yml records the version), so uvx copier update --trust can apply later template releases. Requirements: uv and Python 3.13; Rust (the version in rust-toolchain.toml); Node 24 and wasm-pack for the TypeScript package.
cargo fmt --all --check && cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo build -p proteomics-cli --release # the engine the Python client finds
npm ci && npm run build && npm run typecheck && npm test
uv sync
uv run pre-commit install --hook-type commit-msg
uv run ruff check . && uv run ruff format --check .
uv run zuban check
uv run pytest
The tests need no NIST data: tests/synthetic.py writes libraries in the NIST binary layout from real spike peptides, and the whole pipeline (reading, mapping, search, emission, refinement, JSON-LD, SHACL) runs on them. Tests marked gads run against the real libraries when GADS_ROOT is set, and reproduce the committed showcase.
CI runs on git.uni-greifswald.de from .gitea/workflows/ci.yml. Commit messages follow Conventional Commits and carry no AI co-author trailers. See CONTRIBUTING and AGENTS.md.
Related
dcat-ap-plus-chromatography(same author) uses the same conventions (own IRIs, own predicates, named graphs per basis) for chromatography. Two generic modules (identifiers,census) and the generator calls inartefactsare vendored from it at commit 98f0c47, and are candidates for a shared core package.- Sachikonye, Asserted and Refined Triples: the construction implemented in
refinement. - Sachikonye, Schema Admission: field scores, joins, linking, slot admission and goals (
context,pairs,scores,joins,linking,admission,goals). - Lavoisier: the droplet image follows
lavoisier/visual/IonToDropletConverter.py, with the corrections listed indroplet.py.
Licence
MIT. See LICENSE. The NIST GADS libraries are subject to NIST's terms and are not part of this repository.
Metadata
Release files for dcat-ap-plus-proteomics 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dcat_ap_plus_proteomics-0.1.0.tar.gz | 153.4 kB | Without provenance | Details for dcat_ap_plus_proteomics-0.1.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dcat_ap_plus_proteomics-0.1.0-cp313-abi3-win_amd64.whl | CPython 3.13 | abi3 | Windows x86-64 | Details for dcat_ap_plus_proteomics-0.1.0-cp313-abi3-win_amd64.whl |
| dcat_ap_plus_proteomics-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.13 | abi3 | Linux glibc 2.17+ x86-64 | Details for dcat_ap_plus_proteomics-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
Total release size: 1.4 MB
Release files / dcat_ap_plus_proteomics-0.1.0.tar.gz
| Download URL | dcat_ap_plus_proteomics-0.1.0.tar.gz |
|---|---|
| Size | 153.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fbd795f687b9bbe9128bb4d0345c1788adb3cd6ae5d4ec58385b1419e609e54
|
|
BLAKE2b-256 checksum How to use checksums |
237022347e45a516a4e8edf5b976c82160d1b447aaa116da2c3f73630082e2b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dcat_ap_plus_proteomics-0.1.0-cp313-abi3-win_amd64.whl
| Download URL | dcat_ap_plus_proteomics-0.1.0-cp313-abi3-win_amd64.whl |
|---|---|
| Size | 592.4 kB |
| Tags | CPython 3.13 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7c729c576bcfc0dc573e233fd105400e05c3b4681ed930a490e57f4e1cd10eb8
|
|
BLAKE2b-256 checksum How to use checksums |
627ed37c0f686e5e1984f355d10610bb5d190fb2926d2aaef920528ed72971c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dcat_ap_plus_proteomics-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | dcat_ap_plus_proteomics-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 679.8 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8df5fe28ec6dc8b0e58356144111e1b7946770eb1825937b4c92ba67e1c65612
|
|
BLAKE2b-256 checksum How to use checksums |
00756c671186ab65e6bc40029d5d0ef5ce238dc2de96e0df5d003f3d927fc415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for dcat-ap-plus-proteomics 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.