Skip to main content

Post processing and analysis of quantitative proteomics data

Project description

MsReport

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. DOI Python Version from PEP 621 TOML Run tests

MsReport is a Python library for post-processing quantitative proteomics data from bottom-up mass spectrometry experiments.

Table of Contents

What is MsReport?

MsReport is a Python library designed to simplify the post-processing and analysis of quantitative proteomics data from bottom-up mass spectrometry experiments. It provides a high-level, abstraction-focused API for efficient and standardized workflows. The modular design of the library provides the flexibility to meet project specific data processing needs and customize workflows as required.

The library supports importing protein and peptide-level quantification results from MaxQuant, FragPipe, and Spectronaut, as well as post-translational modification (PTM) data from MaxQuant and FragPipe. MsReport provides tools for data annotation, normalization and transformation, statistical testing, and data visualization.

Key features of MsReport

Data Import and Standardization

The reader module provides software-specific reader classes for importing data from MaxQuant, FragPipe, and Spectronaut that enable the import of protein, peptide and ion tables. During the import process, these classes transform tables column names and table values into a standardized format to ensure that the rest of the library can operate in a tool-agnostic manner.

Data management

The qtable module provides a structured approach to managing quantitative data through its central Qtable class. This class combines quantitative data with an experimental design table that defines the relationship between samples and experimental conditions. The quantitative data is stored in a wide format, where each sample's measurements are stored in separate columns. The Qtable class serves as the foundation for data analysis workflows in MsReport, providing the standardized data structure used by the analyze, plot, and export modules.

Data processing and analysis

The analyze module provides tools for post-processing of mass spectrometry data generated by software such as MaxQuant, FragPipe, or Spectronaut. It includes functions for filtering, normalization, imputation of missing values, and statistical testing. The library integrates with the R package LIMMA to enable differential expression analysis.

[!NOTE]
In order to use the R integration you need to install msreport with optional dependencies, see Optional Dependencies for more information.

Data visualization

The plot module supports the generation of visualizations for quality control and data analysis. It includes functions for creating various plots, such as intensity and ratio distributions, heatmaps, volcano plots, and PCA plots.

Data export

Finally, the export module enables the conversion and export into formats compatible with external tools. This includes generating input files for Amica and exporting tables for easier integration with Perseus.

Installation

If you do not already have a Python installation, we recommend installing the Anaconda distribution or Miniconda distribution from Continuum Analytics, which already contains a large number of popular Python packages for Data Science. Alternatively, you can also get Python from the Python homepage. Note that MsReport requires Python version 3.10 or higher.

The following command will install MsReport and its dependencies by using a wheel file.

pip install msreport

To uninstall the MsReport library use:

pip uninstall msreport

Installation when using Anaconda

To install the MsReport library using Anaconda, you need to either activate a custom conda environment or install it into the default base environment. Open the Anaconda Navigator, activate the desired conda environment or use the base environment, and then open a command line by running the "CMD.exe" application. Finally, use the pip install command as before.

Optional Dependencies

R Integration

MsReport provides an interface to the R package LIMMA for differential expression analysis. To use this functionality, you need:

  • A local installation of R (version 4.0 or higher).
  • The system environment variable R_HOME set to the R home directory.
  • To install msreport with the optional dependencies for R integration.
pip install msreport[R]

Setting the R_HOME environment variable

On Windows, you may need to restart your computer after modifying the system environment variables for the changes to take effect. To find the R home directory, you can run the following command in R:

normalizePath(R.home("home"))

For example, the R home directory might look like this on Windows: C:\Program Files\R\R-4.2.1

Development status

MsReport is a stable and reliable library that has been used on a daily basis for over two years in the Mass Spectrometry Facility at the Max Perutz Labs and the Mass Spectrometry Facility of IMP/IMBA/GMI. While the current interface of MsReport is stable, the library is still under active development, with new features being added regularly. Please note that a major rewrite is planned, which may introduce changes to the API in the future.

How to cite

If you use MsReport for your research or publications, please include the following citation and consider giving the project a star on GitHub.

Hollenstein, D. M., & Hartl, M. (2025). hollenstein/msreport: v0.0.29 (0.0.29). Zenodo. https://doi.org/10.5281/zenodo.15309090

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

msreport-0.0.30.tar.gz (105.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msreport-0.0.30-py3-none-any.whl (101.8 kB view details)

Uploaded Python 3

File details

Details for the file msreport-0.0.30.tar.gz.

File metadata

  • Download URL: msreport-0.0.30.tar.gz
  • Upload date:
  • Size: 105.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for msreport-0.0.30.tar.gz
Algorithm Hash digest
SHA256 28dc63dbe1b5d05202fdaaeec2b3748b83b90e376436422ed6162ba36c7770f9
MD5 e94853741eb32950f39c53a5aa7832a9
BLAKE2b-256 f8d8a2d1b9de8e750ba322ce6f25ec4677794e314a54b9857211f22531f7df06

See more details on using hashes here.

File details

Details for the file msreport-0.0.30-py3-none-any.whl.

File metadata

  • Download URL: msreport-0.0.30-py3-none-any.whl
  • Upload date:
  • Size: 101.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for msreport-0.0.30-py3-none-any.whl
Algorithm Hash digest
SHA256 72de9e1f805871d0dd69f5d3aed3a2a3b3ad1bb3fc366e1f2b6b2a432153dd4e
MD5 27d5d248a94f59ea4cfc5602a196aa9b
BLAKE2b-256 145e71b7ef9fdd66f725dcad2b91553a1ecbb298a545681d5cbeaa52c692b1f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page