mokume

mokume is a comprehensive proteomics quantification toolkit: it turns
peptide-level mass-spectrometry intensities into protein expression matrices,
with built-in normalization, imputation, batch correction, and differential
expression. It supports piBAQ, TopN, MaxLFQ, and DirectLFQ quantification, is
designed for the quantms ecosystem, and
works as both a Python library and a command-line tool.
mokume is an evolution of ibaqpy, extended
well beyond the original iBAQ workflow to a broader range of quantification,
normalization, and differential-expression methods.
Why "mokume"?
Mokume-gane (木目金, "wood-grain
metal") is a Japanese metalworking technique that fuses layers of different
metals into a single piece with a distinctive flowing pattern. mokume does the
same with proteomics data: it melds many noisy, overlapping peptide intensities
into one coherent protein expression profile.
Repository layout
This repository ships two implementations of mokume in one place, following
the multi-language monorepo convention used by projects such as
Apache Arrow (one top-level folder per
language):
mokume/
├── .agents/ # Codex marketplace metadata
├── .claude-plugin/ # Claude Code marketplace metadata
├── docs/ # one shared documentation site (mkdocs)
├── plugins/ # Codex/Claude plugin (shared skill + MCP + knowledge)
├── python/ # the pure-Python implementation — `mokume-py`
└── rust/ # the default Rust-backed `mokume` wheel
rust/ — the default mokume distribution (pip install mokume) and
leading implementation of the native computation commands. Its Rust
kernel is exposed through the in-process mokume._mokume extension.
python/ — the pure-Python mokume-py distribution (pip install mokume-py). It provides readable, independently maintained implementations
and compatibility baselines for covered kernel behavior.
Both expose the same four computation command names, with different support
levels. mokume is Rust-first: new computation lands in the Rust kernel, and
overlapping supported paths are parity-tested where coverage exists. See
Maintenance scope below. The measured runtime/memory
trade-off is workload-specific: on the current sum parity benchmark the Rust
path is about 1.4–1.5× faster, while using about 6.2–8.3× less peak memory.
See docs/architecture.md for the measured values.
Installation
Install the default Rust-backed distribution:
pip install mokume
The base wheel contains the native quantification, normalization, imputation,
batch-correction, and differential-expression kernel. It also installs pyOpenMS
(including pyOpenMS's numpy, pandas, and matplotlib dependencies); piBAQ reads
that runtime's complete protease catalog and passes the theoretical peptide map
into the Rust kernel. Extras select Mokume's additional periphery stacks:
pip install "mokume[analysis]" # plots, reports, QC, comparison, and missforest
pip install "mokume[tissuemap]" # tissue-specificity pipeline
pip install "mokume[plugin]" # local MCP service used by the Mokume Plugin
pip install "mokume[all]" # all Python periphery dependencies
The installed mokume --help lists both the Rust-native compute commands and
the optional wheel workflows. After installing the matching extra, run
mokume plot tsne, mokume tissuemap, mokume plot de, or
mokume interactive-report directly.
Mokume and the optional Plugin/MCP workflow require Python 3.10 or newer.
For the separate pure-Python implementation, use pip install mokume-py; its
base install also includes pyOpenMS and piBAQ calls pyOpenMS digestion directly.
Do not install mokume and mokume-py together because both provide the
mokume import package and console command. Agentic recommendation belongs to
the default mokume distribution and its installable plugin, not mokume-py.
See Installation.
Quick start
Run the full pipeline from a quantms feature table to a protein matrix: