dcat-ap-plus-microbiology
Knowledge graphs of bacterial reactions in DCAT-AP-PLUS, completed by computation rather than by a reasoner, for organisms, colonies and federations of colonies.
Status: specified in docs/specification. Producibility, emergence in colonies and federations, minimal supplements and essential reactions are implemented, and so is the circuit of a network (part 8): species, junctions, genes and grounds, with energies, cycle tests, directions over the membrane and completions. The outcomes of the predictions are in docs/outcomes.md. Nothing here is endorsed by DCAT-AP-PLUS or NFDI4Cat, and the interface is not stable.
Install
pip install dcat-ap-plus-microbiology
This needs Python 3.12 or later and brings cobrapy, rdflib, pySHACL, SciPy, SymPy and NetworkX.
It reads the models cobrapy ships (cobra.io.load_model("textbook"), "iJO1366") and any SBML or
cobrapy JSON file, and answers producibility, emergence, supplements, essential reactions and the
circuit, written as named graphs with a plain DCAT catalogue.
The tables extra writes each run as SciDatS tables (Parquet with DCAT-AP+ metadata, specification
part 10). It needs Python 3.13 and pandas 3, and cobrapy 0.32.1 caps pandas below 3, so it installs
only with an override:
echo "pandas>=3.0.6" > overrides.txt
uv pip install "dcat-ap-plus-microbiology[tables]" --override overrides.txt
showcase/08_from_pypi.ipynb installs the extension, the query service svar-query and the charts of spectacular-charts from PyPI and uses nothing else, so it runs wherever it is copied. The measured energies of the circuit come from a table that is not distributed with the package (see data/raw/SOURCES.md), so a plain install declines every chemical energy with its remedy.
The idea
Someone who holds an ontology knowledge graph of bacterial reactions usually completes it with a reasoner, which classifies and chains what is asserted. The questions microbiology asks of such a graph are calculations rather than entailments. Can this organism make X from this medium? Which way does this reaction run here? Does the colony make X when no member does alone? What is the smallest supplement that closes the gap?
This extension answers them by computing. The graph a user brings is the stated basis, and
the situation (medium, environment, colony membership, measurements) is the supplied basis.
Every completion is derived: the output of a declared rule, carrying its inputs, a
certificate and a status, or declined with the reason. It follows the conventions of the
sibling extensions health-dcat-ap-plus-circuit, dcat-ap-plus-genomics,
dcat-ap-plus-proteomics and dcat-ap-plus-artefacts. The specification is in
docs/specification/.
Layout
The three languages are kept apart, each with its own build tool. They share one version
(tests/test_versions.py checks it).
| Path | Language | What | Tool |
|---|---|---|---|
src/dcat_ap_plus_microbiology/, tests/ |
Python 3.13 | ingestion, the two determinations, the rules, the circuit (circuit/), catalogue emission |
uv |
data/raw/ |
CSV (gzip) | the TECRDB table of the circuit's energies, with its source | |
crates/microbiology-core/ |
Rust | determination A (the scope) and its certificate checks, without I/O | cargo |
crates/microbiology-wasm/ |
Rust | WebAssembly bindings of the core | wasm-pack |
packages/microbiology/ |
TypeScript | @dcat-ap-plus/microbiology, the core for browsers and Node |
npm |
exercises/ontologies_with_python/ |
Jupyter (Python 3.13) | chapters 3–11 of Ontologies with Python (Lamy) as notebooks on the ontology of bacteria; see its README | uv |
exercises/reaction_computing/ |
Jupyter (Python 3.13) | the bacteria ontology with reactions, completed by a reasoner and by computation; see its README | uv |
experiments/ |
Jupyter (Python 3.13) | the experiments of specification parts 6 and 9 on the E. coli models bundled with cobrapy (EXPERIMENTS=1 uv run pytest experiments) |
uv |
docs/ |
Markdown | Sphinx documentation and the specification | sphinx |
.gitea/workflows/ci.yml |
CI on git.uni-greifswald.de, one job per language | Gitea Actions |
The Python layout, tooling and documentation come from the
opensourcelab copier-python template
(.copier-answers.yml records the version). The Rust and TypeScript parts are added beside it,
so uvx copier update --trust can still apply later template releases.
Development
Requirements: uv, the Rust toolchain pinned in
rust-toolchain.toml (installed by rustup on first use),
wasm-pack and Node 20 or later.
# Python
uv sync
uv run ruff check . && uv run ruff format --check .
uv run zuban check
uv run pytest
# Rust
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
# WebAssembly and TypeScript (the build runs wasm-pack first)
npm ci
npm run build
npm run typecheck
npm test
Install the git hooks once with uv run pre-commit install --install-hooks. Commit messages
follow Conventional Commits; see
CONTRIBUTING.md and AGENTS.md.
Licence
MIT. See LICENSE.
Metadata
Release files for dcat-ap-plus-microbiology 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_microbiology-0.1.0.tar.gz | 56.7 kB | Without provenance | Details for dcat_ap_plus_microbiology-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dcat_ap_plus_microbiology-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dcat_ap_plus_microbiology-0.1.0-py3-none-any.whl |
Total release size: 124.0 kB
Release files / dcat_ap_plus_microbiology-0.1.0.tar.gz
| Download URL | dcat_ap_plus_microbiology-0.1.0.tar.gz |
|---|---|
| Size | 56.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac0986f8a1a7066489bfcdf800534d9353c904258b33efd67a6440fb305cff9c
|
|
BLAKE2b-256 checksum How to use checksums |
694ae46405b9a6d95a75de6a14765fb439df55da4b8e9b7776a2141af1fc9ff5
|
| 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_microbiology-0.1.0-py3-none-any.whl
| Download URL | dcat_ap_plus_microbiology-0.1.0-py3-none-any.whl |
|---|---|
| Size | 67.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aef911adf044abf5632df54712bccadbd550da570b8eb39f6ae973a55c06fcb7
|
|
BLAKE2b-256 checksum How to use checksums |
db03cd909ed6613ba0da76a349862ecb20d1b185721ffbc320f11754ee326c0f
|
| 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-microbiology 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.