Circular van Krevelen diagram for visualizing metabolic pathways
Emerging biochemical data require effective pathway visualization, but traditional metabolic maps rely on manual layouts that fall behind new scientific discoveries. lcvk implements a circularized van Krevelen diagram: metabolites are placed by chemical formula, using elemental ratios (H:C mapped to the angular axis, NOPS:C or a related ratio mapped to the radial axis) instead of a hand-drawn layout. Because the coordinates come from chemical principles rather than manual placement, pathway diagrams are automated and consistent across datasets, models, and labs.
Preprint is released: https://www.biorxiv.org/content/10.1101/2025.05.31.657198v1
This is the repo for the lcvk package, which includes code, example data and notebook templates.
Version 0.1 is proof of principle.
Example applications include
- Visualization of metabolic pathways and maps.
- Summurizing differential abundance in metabolomic data.
- Display of isotopic labeling patterns.
- Extension of metabolic knowledge by new reactions.
Install
pip install -e .
Requires Python >= 3.7 and numpy, scipy, matplotlib, mass2chem (see requirements.txt).
Quickstart
import lcvk
# list_cpds: [{'id': ..., 'name': ..., 'neutral_formula': 'C6H12O6'}, ...]
# list_edges: [(source_id, target_id), ...]
lcvk.plot_lcvk_pathway(
list_cpds, list_edges,
formula='neutral_formula', cpd_name='name',
title='My pathway', outfile='pathway.pdf',
)
See notebooks/ for complete worked examples (metabolic pathways, differential metabolomics, isotope labeling).
Citation
Shuzhao Li. Circular van Krevelen diagram for visualizing metabolic pathways. bioRxiv (2025). https://doi.org/10.1101/2025.05.31.657198
Metadata
Release files for lcvk 0.1.1
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 | |
|---|---|---|---|---|
| lcvk-0.1.1.tar.gz | 13.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lcvk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / lcvk-0.1.1.tar.gz
| Download URL | lcvk-0.1.1.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b1201cd5203be47f1c8afc246b24c7b4957ebc7ef574c6f0deacf1c28a2a31f
|
|
BLAKE2b-256 checksum How to use checksums |
a6b1346f7bcee7f8d69e88d4db78b747e69d10f7a7feeb0ef7953c85e0830bc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / lcvk-0.1.1-py3-none-any.whl
| Download URL | lcvk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
927ea5d6fd0a351f9bc537c0b8b83053de34a95c23683af54b5ba2ccf5f908df
|
|
BLAKE2b-256 checksum How to use checksums |
3c2f7af3cb07abb8348d3eef528ca7d77d4b1ad1f5de2b368491b43a5981bda4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for lcvk 0.1.1
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.