pyopenms
Was er macht
PyOpenMS ist ein Tool, das dir hilft, Massenspektrometrie-Daten auszuwerten. Es kann Informationen aus der Proteomik und Metabolomik verarbeiten, zum Beispiel Verbindungen identifizieren, ihre Mengen messen und Dateiformate konvertieren.
Wann du ihn nutzt
- ✓Wenn du Massenspektrometrie-Daten hast und wissen willst, was sie bedeuten.
- ✓Wenn du verschiedene Proben vergleichst, um zu sehen, welche Verbindungen in welcher Menge vorhanden sind.
- ✓Um deine Daten von einem Dateiformat in ein anderes zu konvertieren.
Link zum Skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pyopenms/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Analysiere diese Massenspektrometrie-Datei und sag mir, welche Verbindungen darin enthalten sind.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Du nutzt vordefinierte Skripte, die deine Daten verarbeiten. Diese Skripte erledigen Aufgaben wie das Finden von Peaks, das Identifizieren von Molekülen und das Berechnen von Mengen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
PyOpenMS
Overview
PyOpenMS provides Python bindings to the OpenMS library for computational mass spectrometry, enabling analysis of proteomics and metabolomics data. Use it to read/write MS file formats, process raw spectra, detect and quantify features, identify peptides and proteins, and run end-to-end LC-MS/MS pipelines.
This skill ships ready-to-run scripts in scripts/ covering the most common
high-level workflows. Prefer running a script over writing new code—each is a
parameterized CLI tool that handles loading, processing, and export. Drop into the
Python API (and the references/) only when no script fits.
Installation
uv venv --python 3.13
uv pip install "pyopenms==3.6.0" pandas numpy matplotlib
Verify (note: __version__ works, but the bundled binary prints a one-line
memory-status notice on import that is harmless):
import pyopenms as ms
print(ms.__version__) # 3.6.0
Scripts (start here)
Run with python scripts/<name>.py --help for full options. Input formats differ by script; inspect its help. Commands below run from the skill
directory with the environment activated. Native regression tests use tiny synthetic
files; instrument-specific detection/search performance is not validated.
Inspect & convert
| Script | What it does |
|---|---|
inspect_ms_data.py |
Summarize any mzML/mzXML/featureXML/consensusXML/idXML (counts, RT/m/z ranges, TIC, metadata); optional per-spectrum CSV. |
convert_format.py |
Convert between mzML/mzXML/MGF with optional MS-level, RT, and intensity filtering. |
process_spectra.py |
Configurable signal-processing chain: smoothing (Gauss/SGolay), centroiding (PeakPickerHiRes), normalization, S/N and intensity thresholds. |
Feature detection & quantification
| Script | What it does |
|---|---|
detect_features_metabo.py |
Untargeted metabolomics feature finding: MassTraceDetection → ElutionPeakDetection → FeatureFindingMetabo. |
detect_features_centroided.py |
Peptide/centroided feature detection via FeatureFinderAlgorithmPicked. |
align_link_quantify.py |
Multi-sample pipeline: detect (or load) features → RT alignment → consensus linking → quant matrix CSV. |
consensus_to_matrix.py |
consensusXML → wide intensity matrix + metadata, with optional median/quantile normalization and long format. |
Annotation
| Script | What it does |
|---|---|
detect_adducts.py |
Group adducts/charge variants of the same neutral mass (MetaboliteFeatureDeconvolution). |
accurate_mass_search.py |
Annotate features against local formula/structure TSVs by accurate mass (AccurateMassSearchEngine → mzTab/CSV). |
export_gnps_sirius.py |
Export GNPS FBMN inputs (MGF + quant table) or a SIRIUS .ms file. |
Identification
| Script | What it does |
|---|---|
process_identifications.py |
Re-index against FASTA, estimate FDR/q-values, filter (FDR/length/best-per-spectrum), export idXML + CSV. |
Chemistry
| Script | What it does |
|---|---|
mass_calculator.py |
Monoisotopic/average mass, charged m/z, formula, and isotope pattern for peptides or empirical formulas. |
digest_protein.py |
In-silico protease digestion of FASTA/sequence → theoretical peptides with masses and m/z. |
theoretical_spectrum.py |
Generate annotated theoretical fragment spectra (b/y/a/c/x/z, losses) for a peptide. |
Targeted & visualization
| Script | What it does |
|---|---|
extract_chromatograms.py |
Build TIC/BPC and XIC traces for target m/z (CSV + optional plot). |
plot_ms_data.py |
Quick plots: single spectrum, TIC, 2D feature map, MS1 signal map. |
Common script recipes
# Inspect a file
python scripts/inspect_ms_data.py sample.mzML --spectra-csv spectra.csv
# Untargeted metabolomics: features for one sample
python scripts/detect_features_metabo.py sample.mzML --out-csv features.csv
# Full multi-sample quantification study
python scripts/align_link_quantify.py s1.mzML s2.mzML s3.mzML --out-prefix study
python scripts/consensus_to_matrix.py study.consensusXML --out quant.csv --normalize median
# Peptide chemistry
python scripts/mass_calculator.py --peptide "PEPTIDEM(Oxidation)K" --charges 1 2 3 --isotopes 5
python scripts/digest_protein.py proteins.fasta --enzyme Trypsin --missed 2 --out peptides.csv
# Identification post-processing
…
Häufige Fragen
Was ist Massenspektrometrie?
Das ist ein Laborverfahren, das die Masse von Molekülen in einer Probe misst, um Stoffe zu identifizieren und zu quantifizieren.
Was sind Proteomik und Metabolomik?
Die Proteomik untersucht die Proteine eines Organismus, die Metabolomik die kleinen Moleküle (Metaboliten).
Welche Datei-Typen unterstützt dieses Tool?
Es unterstützt verschiedene gängige Formate wie mzML, mzXML, MGF und weitere.
Details
Originalbeschreibung des Autors
Processes mass spectrometry data with pyOpenMS. Supports proteomics and metabolomics workflows—feature detection, peptide/protein identification, label-free quantification, adduct/accurate-mass annotation, and complex LC-MS/MS pipelines. Supports extensive file formats and algorithms. For simple spectral comparison and small-molecule library matching use matchms.
Beliebtheit
- GitHub-Sterne
- 51k
- Platz im Ranking
- #3545
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
13c-metabolic-flux
51kSchätzt Stoffflüsse im Stoffwechsel anhand von Kohlenstoff-13-Isotopendaten. Nützlich für die Analyse des Zellstoffwechsels und biochemischer Stoffwechselwege.
adaptyv
51kPlant Experimente zur Proteincharakterisierung mit der Adaptyv API. Hilft beim Schätzen der Kosten, Einreichen von Sequenzen und Verfolgen der Laborergebnisse.
aeon
51kFührt Machine-Learning-Aufgaben mit Zeitreihendaten aus. Nützlich zum Klassifizieren, Prognostizieren, Erkennen von Anomalien und Finden von Mustern.
alphagenome
51kSucht vorberechnete genomische Effekte für genetische Varianten heraus. Liefert Scores und Erklärungen zu den Auswirkungen der Varianten auf das Genom.
Ähnliche Skills
gitcrawl
394kLässt deinen Agenten ein gespeichertes Archiv von GitHub-Issues und Pull Requests durchsuchen, Duplikate gruppieren und ihren aktuellen Status auf GitHub prüfen.
slacrawl
394kLässt deinen Agenten Nachrichten in einem lokalen Slack-Archiv durchsuchen und zählen, dessen Aktualität prüfen und es bei Bedarf auffrischen.
goplaces
394kHilft deinem Agenten, mit Google Places nach Orten zu suchen, Details und Bewertungen abzurufen und Ortsnamen aufzulösen, mit JSON-Ausgabe für Skripte.