{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-pyopenms-skill-56f332e03603","title":"Process Mass Spectrometry Files for Analysis","summary":"Process mass spectrometry files (mzML, mzXML, MGF) using PyOpenMS for signal processing, feature detection, and peptide identification in proteomics workflows. The tool supports batch-processing, raw spectrum cleaning, and isotope pattern detection.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-pyopenms-skill-56f332e03603","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-pyopenms-skill-56f332e03603","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-pyopenms-skill-56f332e03603.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-pyopenms-skill-56f332e03603\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Install the required Python packages: `pyopenms`, `pandas`, and `numpy` using `uv pip install pyopenms pandas numpy`. The `run_workflow` function in `scripts\/process_ms.py` includes an `apply_filter` flag to toggle preprocessing steps; exact filters and parameters are documented in `scripts\/process_ms.py` and `references\/signal_processing.md`.","instructions":"---\nname: pyopenms-skill\ndescription: Comprehensive tool for computational mass spectrometry using PyOpenMS; use when you need to read\/write MS formats (mzML\/mzXML\/MGF), run signal processing (smoothing\/peak picking), detect isotope features, or perform peptide identification in proteomics\/metabolomics workflows.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n## When to Use\n\n- Converting, validating, or batch-processing mass spectrometry files (e.g., mzML, mzXML, MGF) as part of a pipeline.\n- Cleaning raw spectra before downstream analysis (smoothing, baseline correction, denoising, peak picking).\n- Detecting and linking isotope patterns \/ features for proteomics or metabolomics feature tables.\n- Running identification-oriented steps where peptide\/protein identification integration is required.\n- Building custom computational MS workflows in Python while leveraging OpenMS algorithms.\n\n## Key Features\n\n- **MS File I\/O**: Read\/write common MS formats (mzML, mzXML, MGF).\n- **Signal Processing**: Smoothing, baseline correction, filtering, and peak picking.\n- **Feature Detection**: Isotope pattern detection and feature linking utilities.\n- **Identification Support**: Hooks for peptide identification workflows via OpenMS-compatible components.\n- **Scripted Workflows**: A ready-to-use \u201cLoad \u2192 Process \u2192 Analyze\u201d workflow entry point.\n\n## Dependencies\n\nInstall the following Python packages:\n\n- `pyopenms` (version: compatible with your OpenMS\/PyOpenMS distribution)\n- `pandas` (version: latest recommended)\n- `numpy` (version: latest recommended)\n\nInstallation:\n\n```bash\nuv pip install pyopenms pandas numpy\n```\n\n## Example Usage\n\nA complete runnable example using the provided workflow script (`scripts\/process_ms.py`):\n\n```python\n# run_example.py\nfrom scripts.process_ms import run_workflow\n\ndef main():\n    # Load -> Process -> Analyze\n    # The script is expected to read the input mzML and apply optional filtering.\n    result = run_workflow(\"data.mzML\", apply_filter=True)\n\n    # The returned object depends on the implementation of run_workflow.\n    # Common patterns include a processed experiment, a feature map, or a summary dict.\n    print(\"Workflow finished.\")\n    print(result)\n\nif __name__ == \"__main__\":\n    main()\n```\n\nRun:\n\n```bash\npython run_example.py\n```\n\nFor manual\/custom workflows, see:\n- File operations: `references\/file_io.md`\n- Signal processing algorithms: `references\/signal_processing.md`\n\n## Implementation Details\n\n- **Binding Layer**: This skill uses PyOpenMS, the Python bindings for the OpenMS C++ library, to expose core computational MS algorithms.\n- **Workflow Pattern**: The default script follows a standard pipeline structure:\n  1. **Load** an MS run from disk (e.g., mzML).\n  2. **Process** spectra (optional filtering\/smoothing\/baseline correction).\n  3. **Analyze** results (e.g., peak picking, feature detection, or downstream summaries).\n- **Configurable Processing**: The `apply_filter` flag in `run_workflow(...)` is intended to toggle one or more preprocessing steps; exact filters and parameters should be documented in `scripts\/process_ms.py` and the referenced guides.\n- **Algorithm Reference**: Detailed descriptions of available filters and peak pickers, including parameterization, are maintained in `references\/signal_processing.md`.","use_cases":["Converting and validating mass spectrometry files as part of a pipeline.","Cleaning raw spectra with smoothing and peak picking.","Detecting isotope patterns for proteomics or metabolomics analysis."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Data%20Analysis\/pyopenms-skill\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T12:32:03.000000Z","updated_at":"2026-11-24T12:17:13.000000Z","seo_title":"Process Mass Spectrometry Files for Analysis","seo_description":"Process mass spectrometry files with PyOpenMS for signal processing, feature detection, and peptide identification in proteomics workflows.","seo_keywords":["process mass spectrometry files","mass spectrometry data processing","pyopenms signal processing","isotope pattern detection","peptide identification workflow"]}}