A package for visualizing mass spectrometry data using pandas dataframes
Project description
pyOpenMS-viz: The Python Pandas-Based Mass Spectrometry Visualization Library
pyOpenMS-Viz is a Python library that provides a simple interface for extending the plotting capabilities of Pandas DataFrames for creating static or interactive visualizations of mass spectrometry data. It integrates seamlessly with various plotting library backends (matpotlib, bokeh and plotly) and leverages the power of Pandas for data manipulation and representation.
Features
- Flexible plotting API that interfaces directly with Pandas DataFrames
- Support for multiple plotting backends: matplotlib (static), bokeh and plotly (interactive)
- Visualization of various mass spectrometry data types, including 1D chromatograms, spectra, and 2D peak maps
- Versatile column selection for easy adaptation to different data formats
- Consistent API across different plotting backends for easy switching between static and interactive plots
- Suitable for use in scripts, Jupyter notebooks, and web applications
Suported Plots
Plot Type | Required Dimensions | pyopenms_viz Name | Matplotlib | Bokeh | Plotly |
---|---|---|---|---|---|
Chromatogram | x, y | chromatogram | ✓ | ✓ | ✓ |
Mobilogram | x, y | mobilogram | ✓ | ✓ | ✓ |
Spectrum | x, y | spectrum | ✓ | ✓ | ✓ |
PeakMap 2D | x, y, z | peakmap | ✓ | ✓ | ✓ |
PeakMap 3D | x, y, z | peakmap (plot3d=True) | ✓ | ✓ |
(Recommended) Pip Installation
The recommended way of installing pyopenms_viz is through the Python Package Index (PyPI). We recommend installing pyopenms_viz in its own virtual environment using Anaconda to avoid packaging conflicts.
First create a new environemnt:
conda create --name=pyopenms_viz python=3.12
conda activate pyopenms_viz
Then in the new environment install pyopenms_viz.
pip install pyopenms_viz --upgrade
Documentation
Documentation can be found here
References
-
Sing, J., Charkow, J., Walter, A. et al. pyOpenMS-viz: Streamlining Mass Spectrometry Data Visualization with pandas. Research Square, (2024) https:/doi.org/10.21203/rs.3.rs-5166557/v1
-
Pfeuffer, J., Bielow, C., Wein, S. et al. OpenMS 3 enables reproducible analysis of large-scale mass spectrometry data. Nat Methods 21, 365–367 (2024). https://doi.org/10.1038/s41592-024-02197-7
-
Röst HL, Schmitt U, Aebersold R, Malmström L. pyOpenMS: a Python-based interface to the OpenMS mass-spectrometry algorithm library. Proteomics. 2014 Jan;14(1):74-7. https://doi.org/10.1002/pmic.201300246. PMID: 24420968.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyopenms_viz-0.1.3.tar.gz
.
File metadata
- Download URL: pyopenms_viz-0.1.3.tar.gz
- Upload date:
- Size: 140.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c01407eca81b24a9fe3cbb424642e4103acf754a544a15568f1293fbb8211b9 |
|
MD5 | 0ff28f2b0ec742a8e265a2066f8ef134 |
|
BLAKE2b-256 | 742c9ea799d60495a421f560136a31fddea591656faedabef222eb32fd494842 |
File details
Details for the file pyopenms_viz-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pyopenms_viz-0.1.3-py3-none-any.whl
- Upload date:
- Size: 142.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa4143969a4a64a3435bf6a224bb5ed9f9f703e91f06b19805251a61705fbbf |
|
MD5 | 16c8db964ff431e88d7f011e17be018b |
|
BLAKE2b-256 | 6e330bc346b7533b8b9818cbdc2dc8eddf4bd2dfb2580f56b506c77a2c8cf275 |