Library for depthcharge-based metabolomics models.
Not yet on PyPI — install from GitHub.
# pip
pip install git+https://github.com/bittremieuxlab/metabo-depthcharge.git
# conda (env only; package itself via pip)
conda create -n mdc python=3.11 && conda activate mdc
pip install git+https://github.com/bittremieuxlab/metabo-depthcharge.gitSee the documentation for the full user guide.
Requires uv.
uv sync --extra devuv run pytest tests/ --ignore=tests/characterization# Check only
uv run ruff check .
uv run ruff format --check .
# Fix in place
uv run ruff check --fix .
uv run ruff format .uv run pre-commit installAfter that, ruff and pytest run automatically on every commit.
Characterization tests compare behaviour against the original upstream implementations. Run locally only, before modifying a module:
uv run pytest tests/characterization/ \
--spectrawl-path /path/to/spectrawl \
--metabo-src-path /path/to/metabo-depthcharge