orangemetabo — MetaboAnalyst-Style Statistics for Orange3
Author: Philipp Weller (AK Weller) · philipp.weller@googlemail.com
Add-on for Orange3 that reproduces the MetaboAnalyst univariate workflow for GC-MS / GC-IMS feature tables (Compound Discoverer exports), as used in the coffee-fermentation study (AK Weller).
Pipeline
Feature Table CSV ──> Preprocess ──> [Filter] ──> Univariate Stats ──> Heatmap
(2-header, ;) (Sum-Norm, (QC) (ANOVA / Welch / (Top-N,
log2, Imputation, Kruskal + BH-FDR Ward cluster,
Autoscale/Pareto) + log2FC + means) PNG/SVG export)
└─> Volcano
(log2FC vs -log10 FDR)
Widgets (category Metabo Weller)
| Widget | Function |
|---|---|
| Metabo Feature Table | Load Compound Discoverer 2-header semicolon CSV; sample×feature Table with group/sample metas; pseudo-replicate (<3 replicates) hint |
| Metabo Preprocess | Optional imputation (min / k-NN) → sum-normalisation → log2 → autoscale (z) / Pareto |
| Metabo Feature Filter | Drop features by missing fraction, zero variance, constant, or below-detection threshold |
| Metabo Univariate Stats | One-way ANOVA, Welch two-sample t-test, or Kruskal-Wallis per feature + Benjamini-Hochberg FDR + log2FC + group means |
| Metabo Volcano | Volcano plot (log2FC vs. −log10 FDR) for a two-group contrast — taken from the Univariate Stats results, or computed from Data alone (Welch t-test + BH-FDR) so Preprocess → Volcano already plots; FDR/|log2FC| thresholds, direction colours, top-N labels, PNG/SVG export; click a point to select a feature (shift-click to add) to see its per-group distribution as a box plot; emits the significant features and the selected features' sample values |
| Metabo Heatmap | Top-N features by p, Ward/Euclidean row clustering, group bar, PNG/SVG export |
Correctness
orangemetabo/metabo_core.py is the headless, Qt-free analytics core.
The default pipeline (sum-normalise → log2 → autoscale → one-way ANOVA →
BH-FDR) reproduces the validated ground truth
analysis_CV/cv_anova_alle_97_features.csv exactly: 97/97 features on
F, p, and FDR (max abs diff < 5e-5). Reproduce with _test_core.py
(core) and _test_e2e.py (all six widgets, offscreen) — both run against the
Dropbox ground truth and print 97/97. The volcano contrast is checked to equal
the Welch log2FC and the ground-truth log2FC_ANF_vs_WILD column.
Note on the volcano's fold change: it is the difference of the per-group means in the space of the data you feed in. For a real log2 fold change, preprocess with Sum normalisation + log2 and no scaling (Metabo Preprocess → Method "Sum (total area)", log2 on, Scaling "None"). With autoscaled/Pareto data the x-axis is a scaled mean difference (the p-values are unaffected, since the t-test is scale-invariant per feature).
Plot interaction
The plot widgets (Metabo Volcano, Metabo Heatmap) behave like any Orange plot widget:
- Wheel over the plot zooms around the cursor; drag with the left button pans — no mode to switch on first.
- ”Reset view” button restores the automatic view; the toolbar above each canvas is deliberately slim — Home (= reset view) and Save only. The modal pan/zoom/back/forward tools are removed because they swallow the left button, which made point selection impossible until you found your way out of the mode again; panning/zooming are direct gestures instead.
- Your zoom/pan survives redraws (changing a threshold, selecting a point,
…). A plain matplotlib canvas would autoscale on every draw and silently drop
the view —
PlotCanvas.after_draw()prevents that. - Points are clickable at the edges and selection works in every state: it picks the nearest feature within a 12 px radius (an edge point like a max-log2FC hit is no longer glued to the axis spine / unclickable), and is not gated on the toolbar mode.
- The volcano legend is draggable; the volcano/box-plot split has a draggable divider.
- Orange's Save graph / copy-to-clipboard / report entries work
(
graph_nameis set), and the widget window is resizable.
Implementation:
orangemetabo/widgets/_plot.py(PlotCanvas: wheel zoom, drag-pan, click selection, view preservation, reset;attach_toolbar(slim Home+Save, Home wired to reset),draggable). Orange's own plots are pyqtgraph based and get this for free; the Metabo plots are matplotlib, hence the helper.
Installation
cd orange-metabo-addon
/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3 -m pip install -e .
Or from the monorepo: python ../orange-install.py metabo.
Metadata
Release files for orangemetabo 0.4.4
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 | Actions |
|---|---|---|---|---|
| orangemetabo-0.4.4.tar.gz | 28.1 kB | Without provenance | Details for orangemetabo-0.4.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| orangemetabo-0.4.4-py3-none-any.whl | Python 3 | none | any | Details for orangemetabo-0.4.4-py3-none-any.whl |
Total release size: 61.6 kB
Release files / orangemetabo-0.4.4.tar.gz
| Download URL | orangemetabo-0.4.4.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
790b5709a56839d814b53803116a6b737af8fb18fdaa2c2aad226ae7fea4a25f
|
|
BLAKE2b-256 checksum How to use checksums |
8c191fd0dcf16f69b44b3ef6625b860458eb4319efe878f367595545a972ff79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.12
|
Release files / orangemetabo-0.4.4-py3-none-any.whl
| Download URL | orangemetabo-0.4.4-py3-none-any.whl |
|---|---|
| Size | 33.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a2ae2e6267d6fc3b35e6972677834686973ff678cea3cbf770557740f49ec65
|
|
BLAKE2b-256 checksum How to use checksums |
1f7b385839c24892a0558d491b5a4bb0c50318cb708b138ad4f8b544359f106a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.12
|
Security for orangemetabo 0.4.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.