msreport


Namemsreport JSON
Version 0.0.31 PyPI version JSON
download
home_pageNone
SummaryPost processing and analysis of quantitative proteomics data
upload_time2025-08-01 09:34:09
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords mass spectrometry proteomics post processing data analysis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MsReport

[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15309090.svg)](https://doi.org/10.5281/zenodo.15309090)
![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fhollenstein%2Fmsreport%2Fmain%2Fpyproject.toml)
[![Run tests](https://github.com/hollenstein/msreport/actions/workflows/run-tests.yml/badge.svg)](https://github.com/hollenstein/msreport/actions/workflows/run-tests.yml)

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

## Table of Contents

- [What is MsReport?](#what-is-msreport)
  - [Key features of MsReport](#key-features-of-msreport)
- [Installation](#installation)
    - [Installation when using Anaconda](#installation-when-using-anaconda)
    - [Additional requirements](#additional-requirements)
    - [Optional Dependencies](#optional-dependencies)
- [Development status](#development-status)
- [How to cite](#how-to-cite)

## 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.

The [documentation](https://hollenstein.github.io/msreport/) provides an overview of the library's public API.

### 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](#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](https://bioapps.maxperutzlabs.ac.at/app/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](https://www.anaconda.com/download) or [Miniconda](https://docs.anaconda.com/free/miniconda/index.html) 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](https://www.python.org/downloads/windows). Note that MsReport requires Python version 3.10 or higher.

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

```shell
pip install msreport
```

To uninstall the MsReport library use:

```shell
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.

```shell
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:

```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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "msreport",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "mass spectrometry, proteomics, post processing, data analysis",
    "author": null,
    "author_email": "\"David M. Hollenstein\" <hollenstein.david@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/3f/fd/f8b0f49409a1b668a13b7562a117cd7f21aea3170aa3530302436fe5d4b8/msreport-0.0.31.tar.gz",
    "platform": null,
    "description": "# MsReport\r\n\r\n[![Project Status: WIP \u2013 Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)\r\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15309090.svg)](https://doi.org/10.5281/zenodo.15309090)\r\n![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fhollenstein%2Fmsreport%2Fmain%2Fpyproject.toml)\r\n[![Run tests](https://github.com/hollenstein/msreport/actions/workflows/run-tests.yml/badge.svg)](https://github.com/hollenstein/msreport/actions/workflows/run-tests.yml)\r\n\r\n**MsReport** is a Python library for post-processing quantitative proteomics data from\r\nbottom-up mass spectrometry experiments.\r\n\r\n## Table of Contents\r\n\r\n- [What is MsReport?](#what-is-msreport)\r\n  - [Key features of MsReport](#key-features-of-msreport)\r\n- [Installation](#installation)\r\n    - [Installation when using Anaconda](#installation-when-using-anaconda)\r\n    - [Additional requirements](#additional-requirements)\r\n    - [Optional Dependencies](#optional-dependencies)\r\n- [Development status](#development-status)\r\n- [How to cite](#how-to-cite)\r\n\r\n## What is MsReport?\r\n\r\nMsReport 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.\r\n\r\nThe 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.\r\n\r\nThe [documentation](https://hollenstein.github.io/msreport/) provides an overview of the library's public API.\r\n\r\n### Key features of MsReport\r\n\r\n#### Data Import and Standardization\r\n\r\nThe `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.\r\n\r\n#### Data management\r\n\r\nThe `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.\r\n\r\n#### Data processing and analysis\r\n\r\nThe `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.\r\n\r\n> [!NOTE]  \r\n> In order to use the R integration you need to install msreport with optional dependencies, see [Optional Dependencies](#optional-dependencies) for more information.\r\n\r\n#### Data visualization\r\n\r\nThe `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.\r\n\r\n#### Data export\r\n\r\nFinally, the `export` module enables the conversion and export into formats compatible with external tools. This includes generating input files for [Amica](https://bioapps.maxperutzlabs.ac.at/app/amica) and exporting tables for easier integration with Perseus. \r\n\r\n## Installation\r\n\r\nIf you do not already have a Python installation, we recommend installing the [Anaconda distribution](https://www.anaconda.com/download) or [Miniconda](https://docs.anaconda.com/free/miniconda/index.html) 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](https://www.python.org/downloads/windows). Note that MsReport requires Python version 3.10 or higher.\r\n\r\nThe following command will install MsReport and its dependencies by using a wheel file.\r\n\r\n```shell\r\npip install msreport\r\n```\r\n\r\nTo uninstall the MsReport library use:\r\n\r\n```shell\r\npip uninstall msreport\r\n```\r\n\r\n### Installation when using Anaconda\r\n\r\nTo 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.\r\n\r\n### Optional Dependencies\r\n\r\n#### R Integration\r\n\r\nMsReport provides an interface to the R package LIMMA for differential expression analysis. To use this functionality, you need:\r\n\r\n- A local installation of **R (version 4.0 or higher)**.\r\n- The system environment variable R_HOME set to the R home directory.\r\n- To install msreport with the optional dependencies for R integration.\r\n\r\n```shell\r\npip install msreport[R]\r\n```\r\n\r\n#### Setting the R_HOME environment variable\r\n\r\nOn 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:\r\n\r\n```R\r\nnormalizePath(R.home(\"home\"))\r\n```\r\n\r\nFor example, the R home directory might look like this on Windows: `C:\\Program Files\\R\\R-4.2.1`\r\n\r\n## Development status\r\n\r\nMsReport 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.\r\n\r\n## How to cite\r\n\r\nIf you use MsReport for your research or publications, please include the following citation and consider giving the project a star on GitHub.\r\n\r\n> Hollenstein, D. M., & Hartl, M. (2025). hollenstein/msreport: v0.0.29 (0.0.29). Zenodo. https://doi.org/10.5281/zenodo.15309090\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Post processing and analysis of quantitative proteomics data",
    "version": "0.0.31",
    "project_urls": {
        "changelog": "https://github.com/hollenstein/msreport/blob/main/CHANGELOG.md",
        "documentation": "https://hollenstein.github.io/msreport/",
        "homepage": "https://github.com/hollenstein/msreport"
    },
    "split_keywords": [
        "mass spectrometry",
        " proteomics",
        " post processing",
        " data analysis"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "165b64ce2053cf833e31b55a4f8d30bcb2fcd1ad10be482ac77cc55a85fce8c8",
                "md5": "25a1520f35d1138605b6ec63a5cff906",
                "sha256": "74ed27c5244a58174e2092e47caddfdf82d55c6cc4a1ae6defcdd226964da40a"
            },
            "downloads": -1,
            "filename": "msreport-0.0.31-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "25a1520f35d1138605b6ec63a5cff906",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 106566,
            "upload_time": "2025-08-01T09:34:07",
            "upload_time_iso_8601": "2025-08-01T09:34:07.301512Z",
            "url": "https://files.pythonhosted.org/packages/16/5b/64ce2053cf833e31b55a4f8d30bcb2fcd1ad10be482ac77cc55a85fce8c8/msreport-0.0.31-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3ffdf8b0f49409a1b668a13b7562a117cd7f21aea3170aa3530302436fe5d4b8",
                "md5": "a725f136dd81b0c7222e275973187b32",
                "sha256": "a73014b35b1e1dc4531f57991fa8b19a60c95169853ca791ef1a3d2acad20ec2"
            },
            "downloads": -1,
            "filename": "msreport-0.0.31.tar.gz",
            "has_sig": false,
            "md5_digest": "a725f136dd81b0c7222e275973187b32",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 109754,
            "upload_time": "2025-08-01T09:34:09",
            "upload_time_iso_8601": "2025-08-01T09:34:09.409415Z",
            "url": "https://files.pythonhosted.org/packages/3f/fd/f8b0f49409a1b668a13b7562a117cd7f21aea3170aa3530302436fe5d4b8/msreport-0.0.31.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-01 09:34:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hollenstein",
    "github_project": "msreport",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "msreport"
}
        
Elapsed time: 1.23006s