Skip to main content

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_pathway_fa

example_pathway_alanine

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lcvk-0.1.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lcvk-0.1.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file lcvk-0.1.1.tar.gz.

File metadata

  • Download URL: lcvk-0.1.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for lcvk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7b1201cd5203be47f1c8afc246b24c7b4957ebc7ef574c6f0deacf1c28a2a31f
MD5 ac3419f5a18d71dab18e3e3b69113c35
BLAKE2b-256 a6b1346f7bcee7f8d69e88d4db78b747e69d10f7a7feeb0ef7953c85e0830bc3

See more details on using hashes here.

File details

Details for the file lcvk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lcvk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for lcvk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 927ea5d6fd0a351f9bc537c0b8b83053de34a95c23683af54b5ba2ccf5f908df
MD5 45f2e41351ad66095bd283f84eced5b7
BLAKE2b-256 3c2f7af3cb07abb8348d3eef528ca7d77d4b1ad1f5de2b368491b43a5981bda4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

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