MaldiSuite
A Python ecosystem for MALDI-TOF spectral processing and analysis in antimicrobial resistance research
MaldiSuite combines preprocessing, batch effect correction, and deep learning classifiers in a single sklearn-compatible workflow for clinical microbiology and computational biology research.
Landing page: MaldiSuite
What this repository contains
This repository serves two purposes:
- Landing page for the website.
- Meta-package: a minimal PyPI package (
maldisuite) that installs the three packages of the suite with pinned compatible versions.
This repository does not contain the source code of the three packages. Each package lives in its own repository, with its own issues, documentation, and release cycle.
The three packages
MaldiAMRKit owns the data model, preprocessing, evaluation, and biomarker / drift modules; MaldiBatchKit re-exports every corrector (ComBat variants, Limma, Harmony, MALDI-specific harmonisers) at the top level; MaldiDeepKit ships scikit-learn-compatible deep classifiers (MaldiMLPClassifier, MaldiCNNClassifier, MaldiResNetClassifier, MaldiTransformerClassifier).
| Logo | Package | Purpose | Repository |
|---|---|---|---|
| MaldiAMRKit | Preprocessing, evaluation, biomarkers, drift monitoring | MaldiAMRKit | |
| MaldiBatchKit | Batch effect correction for mass spectra | MaldiBatchKit | |
| MaldiDeepKit | Deep learning classifiers for MALDI-TOF spectra | MaldiDeepKit |
Installation
Install the full suite with a single command:
pip install maldisuite
This installs maldiamrkit, maldibatchkit, and maldideepkit at compatible versions.
Alternatively, install individual packages separately:
pip install maldiamrkit # preprocessing, biomarkers, drift
pip install maldibatchkit # batch effect correction
pip install maldideepkit # deep learning classifiers
Quick start
from maldiamrkit import MaldiSet
from maldiamrkit.evaluation import CaseGroupedKFold, vme_scorer
from maldibatchkit import BatchAwareWarping, ComBat
from maldideepkit import MaldiMLPClassifier
from sklearn.pipeline import Pipeline
from sklearn.model_selection import cross_val_score
data = MaldiSet.from_directory("driams/", "meta.csv", bin_width=3)
batch = data.meta["batch"]
pipe = Pipeline([
("warp", BatchAwareWarping(batch=batch)),
("combat", ComBat(batch=batch, method="fortin")),
("clf", MaldiMLPClassifier(input_dim=data.X.shape[1], random_state=0)),
])
scores = cross_val_score(
pipe, data.X, data.get_y_single("Drug"),
scoring=vme_scorer,
cv=CaseGroupedKFold(n_splits=5),
groups=data.meta["patient_id"],
)
Citation
Citation will be available soon.
License
MIT License - see LICENSE for the full text.
Acknowledgments
MaldiSuite builds on the work of the mass spectrometry and clinical microbiology communities. In particular, we acknowledge:
- MALDIquant (Gibb & Strimmer, 2012, Bioinformatics)
- The Borgwardt Lab and the DRIAMS benchmark (Weis et al., 2022, Nature Medicine), which established Python-based MALDI-TOF AMR prediction as a research area
Release files for maldisuite 0.2.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 | |
|---|---|---|---|
| maldisuite-0.2.0.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maldisuite-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / maldisuite-0.2.0.tar.gz
| Download URL | maldisuite-0.2.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3433591e24a32f3bec1102e5787ddceeeec0ba1f8a9f0bc5a2c21d4207115c8a
|
|
BLAKE2b-256 checksum How to use checksums |
501c5d28a4c58484510114bc6f7676c08c5e1ce833d81cdfd3307834d46a261e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / maldisuite-0.2.0-py3-none-any.whl
| Download URL | maldisuite-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1fc21dde09d9e06d568285d7083e693c3f25e3b4ad93043ada41e34a18f18425
|
|
BLAKE2b-256 checksum How to use checksums |
4f6e1cc8f83e9622ba9a8b1527ffa4d9ea6744a7572dacc4fb14062b6c8a1a5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|