Skip to main content

dcat-ap-plus-metabolomics

Metabolomics extension of the extension of the Data Catalog Vocabulary (DCAT) application profile by NFDI4Chem and NFDI4Cat (DCAT-AP-PLUS).

Status: in development; the interface is not stable. The plan is in docs/specification: the tasks the extension hands to Lavoisier, the typed verdicts it records, the exchanges with the sibling graphs, and the predictions to test first. It follows the conventions of the sibling extensions dcat-ap-plus-proteomics and dcat-ap-plus-microbiology. Nothing here is endorsed by DCAT-AP-PLUS or NFDI4Cat.

The work is split by language, and all heavy computing is in Rust. ms-core holds masses, isotopes, similarity, partition coordinates, S-entropy and its ternary trie, contact graphs and their cuts, process ladders and virtual substates. It also reads MSP (the text format of mass-spectral libraries), MGF (Mascot Generic Format), mzML and MassBank record files. metabolomics-core holds the library conventions, the isomer harness and the contact method of CASMI (Critical Assessment of Small Molecule Identification). The command metabolomics answers the artefact tool protocol. The Python package carries the same commands as an extension module, writes answers as SciDatS files with DCAT-AP-PLUS metadata, and drives the notebooks. The UI and the views are TypeScript over the same cores compiled to WebAssembly.

Install

pip install "dcat-ap-plus-metabolomics[notebook]"

The wheel carries the Rust core, 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, on 15 MassBank records shipped with it; its last section asks PubChem through svar.

from dcat_ap_plus_metabolomics import datasets
from dcat_ap_plus_metabolomics.engine import Engine

engine = Engine()                          # the Rust core, in process
engine.audit(datasets.massbank())          # {'records': 15, 'written_from_formula': 15, ...}

Layout

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.

Path What
crates/ms-core/ the mass-spectrometry core shared with dcat-ap-plus-proteomics (which depends on it by git URL)
crates/metabolomics-core/ library conventions, the contact method, the isomer harness
crates/metabolomics-cli/ the command metabolomics: tool <name> answers one artefact request on stdin; metabolomics tools lists them
crates/metabolomics-wasm/ the cores for JavaScript (wasm-bindgen)
packages/metabolomics/ @dcat-ap-plus/metabolomics: typed wrapper, SVG views, demo/
crates/metabolomics-py/ the extension module dcat_ap_plus_metabolomics._core (PyO3, built by maturin)
src/dcat_ap_plus_metabolomics/ the Python package: engine (the commands, in process or as the binary), protocol (requests, answers, refusals), exchange (answers as SciDatS files), views (the TypeScript views), datasets (the bundled MassBank records)
docs/notebooks/ notebooks that run from the installed package (README)
jupyter/ demonstration notebooks, executed on the NIST AC/CAC 2020 library (README)
tests/ pytest tests
docs/ Sphinx documentation (MyST Markdown)
.gitea/workflows/ci.yml CI on git.uni-greifswald.de; .github/workflows/ is kept for a GitHub mirror

Development

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 metabolomics-cli --release    # the engine the Python client finds

npm ci && npm run build --workspaces          # wasm-pack, then tsc
npm run typecheck --workspaces && npm test --workspaces

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

Two checks need the acylcarnitine library AC/CAC 2020 of NIST (National Institute of Standards and Technology), which is not distributed here. They are the library test (AC_CAC_MSP=… cargo test -p metabolomics-core) and the notebooks (NOTEBOOKS=1 uv run --group notebooks pytest tests/test_notebooks.py).

Commit messages follow Conventional Commits and carry no AI co-author trailers; the commit-msg hooks and CI check both. See CONTRIBUTING and AGENTS.md.

Licence

MIT. See LICENSE.

Metadata

Release files for dcat-ap-plus-metabolomics 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcat-ap-plus-metabolomics 0.1.0
File Size Uploaded Provenance Actions
dcat_ap_plus_metabolomics-0.1.0.tar.gz 109.4 kB Without provenance Details for dcat_ap_plus_metabolomics-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dcat-ap-plus-metabolomics 0.1.0
File Interpreter ABI Platform Actions
dcat_ap_plus_metabolomics-0.1.0-cp313-abi3-win_amd64.whl CPython 3.13 abi3 Windows x86-64 Details for dcat_ap_plus_metabolomics-0.1.0-cp313-abi3-win_amd64.whl
dcat_ap_plus_metabolomics-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_metabolomics-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_metabolomics-0.1.0.tar.gz

Download URL dcat_ap_plus_metabolomics-0.1.0.tar.gz
Size 109.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8565180ef86a8da210ac060afe78d6e5bbd813020b0faeca64adc9fcd98f5718
BLAKE2b-256 checksum
How to use checksums
50c7e0eb0bfcb81fb9394a3708c04c24b614ec3ed597ee25a9dc4b671f9a3ff6
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_metabolomics-0.1.0-cp313-abi3-win_amd64.whl

Download URL dcat_ap_plus_metabolomics-0.1.0-cp313-abi3-win_amd64.whl
Size 599.5 kB
Tags CPython 3.13 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e5d8268b3fa3feb4addc2e0a6270a4f909801c2f7f7cc339af9628f8bfe53f5a
BLAKE2b-256 checksum
How to use checksums
b0e65756738bc186ea94e9b71f4f1fa8f9397aba13669df82c6df7eacb000e55
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_metabolomics-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL dcat_ap_plus_metabolomics-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 672.1 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1570a5112de28a85350f65e5133327015ee10377dd2b2f6d4669b0baf3cc4edc
BLAKE2b-256 checksum
How to use checksums
2aba9cda782e10cfc2d3d6c157ca69dd541ad0426a0c8b97bff6ebea1eeeae49
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-metabolomics 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page