pyopenms
Skill by K-Dense-AI
Processes mass spectrometry data with pyOpenMS for proteomics and metabolomics. Suited to researchers who need feature detection, identification filtering and label-free quantification scripts.
Install pyopenms
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/pyopenms ~/.claude/skills/pyopenmsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/pyopenms ~/.gemini/antigravity-cli/skills/pyopenmsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The pyopenms skill gives an AI assistant guidance and ready-to-run scripts for computational mass spectrometry with pyOpenMS 3.6.0. The scripts cover inspecting and converting MS file formats, signal processing, untargeted metabolomics feature detection, multi-sample alignment and linking, adduct and accurate-mass annotation, peptide identification filtering, in-silico protein digestion, theoretical spectra and chromatogram extraction. Each script is a parameterized command line tool.
The skill also documents API changes in version 3.6.0 and scientific caveats for FDR estimation, alignment and annotation. It is aimed at mass spectrometry researchers working on proteomics or metabolomics. For simple spectral comparison and small-molecule library matching, the source points to matchms instead.
Written from the project's SKILL.md and checked against it.
What it can do
- inspect_ms_data.pySummarizes mzML, mzXML, featureXML, consensusXML and idXML files.
- convert_format.pyConverts between mzML, mzXML and MGF with level, RT and intensity filters.
- detect_features_metabo.pyRuns untargeted metabolomics feature finding for one sample.
- align_link_quantify.pyDetects or loads features, aligns RT, links them and writes a quant matrix.
- consensus_to_matrix.pyConverts consensusXML to a wide intensity matrix with optional normalization.
- detect_adducts.pyGroups adducts and charge variants of the same neutral mass.
- accurate_mass_search.pyAnnotates features against local formula or structure TSV files by accurate mass.
- process_identifications.pyRe-indexes against FASTA, estimates FDR and filters identifications.
- digest_protein.pyPerforms in-silico protease digestion of FASTA or sequences.
- theoretical_spectrum.pyGenerates annotated theoretical fragment spectra for a peptide.
What you need
- CPython 3.11 or newer
- pyOpenMS 3.6.0
- pandas and NumPy
- Matplotlib for plots
- macOS 15+ arm64, Linux glibc 2.34+ x86-64/arm64, or Windows x86-64
Try asking
- Detect untargeted metabolomics features in sample.mzML and export a CSV
- Run label-free quantification across my mzML files and build a matrix
- Digest a FASTA protein file with trypsin and export the peptide masses
Good to know
- Native regression tests use tiny synthetic files; instrument-specific performance is not validated.
- Accurate-mass search uses local TSV databases, not a live HMDB endpoint.
- The --fdr option filters peptide hits only and does not establish protein-level FDR.
- Alignment failure stops linking unless --allow-unaligned is set.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pyopenms/SKILL.md, skills/pyopenms/scripts/_common.py, skills/pyopenms/scripts/accurate_mass_search.py, skills/pyopenms/scripts/align_link_quantify.py, skills/pyopenms/scripts/consensus_to_matrix.py, skills/pyopenms/scripts/convert_format.py, skills/pyopenms/scripts/detect_adducts.py, skills/pyopenms/scripts/detect_features_centroided.py, skills/pyopenms/scripts/detect_features_metabo.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Read Write Edit Bash
-
SKILL.md12 KB -
references/data_structures.md5 KB -
references/feature_detection.md6 KB -
references/file_io.md4 KB -
references/identification.md5 KB
Show all 24 files
-
references/metabolomics.md6 KB -
references/signal_processing.md6 KB -
scripts/_common.py1 KB -
scripts/accurate_mass_search.py4 KB -
scripts/align_link_quantify.py6 KB -
scripts/consensus_to_matrix.py3 KB -
scripts/convert_format.py3 KB -
scripts/detect_adducts.py4 KB -
scripts/detect_features_centroided.py3 KB -
scripts/detect_features_metabo.py4 KB -
scripts/digest_protein.py4 KB -
scripts/export_gnps_sirius.py4 KB -
scripts/extract_chromatograms.py4 KB -
scripts/inspect_ms_data.py6 KB -
scripts/mass_calculator.py4 KB -
scripts/plot_ms_data.py4 KB -
scripts/process_identifications.py6 KB -
scripts/process_spectra.py5 KB -
scripts/theoretical_spectrum.py3 KB
Alternatives to pyopenms
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
pyopenms: common questions
Does the pyopenms skill validate FDR at the protein level?
No. The source says the FDR filter applies to peptide identifications and its threshold does not establish protein-level FDR.
Does accurate-mass search query HMDB online?
No. The source says it uses local TSV databases and not a live HMDB endpoint.
Can the GNPS export use a plain MS1 consensus map?
No. The source says GNPS export requires MS2-to-feature annotations, so a plain MS1 consensus from align_link_quantify.py is insufficient.
How do I install pyopenms?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pyopenms free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pyopenms safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pyopenms?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
