Skip to main content

A library to calculate peptide features.

Project description

PepMEASURE: Methods for Extraction of Amino Acid Sequence Representations

PyPI CI Coverage badge Code style: black

PepMEASURE (Methods for Extraction of Amino Acid Sequence REpresentations) is available both as a Python package on PyPI and as a web server accessible through any modern web browser (https://pepmeasure.org). It enables comprehensive calculation of physicochemical properties for entire peptide datasets, either programmatically via Python or through an intuitive web interface. PepMEASURE provides detailed results for individual peptides, user-friendly visualizations, and supports comparative analyses across user-defined experimental or conditional groups. All computed features can be downloaded as tabular data for further analysis, and interactive visualizations can be exported as high-resolution static figures suitable for publication.

This work was conducted as part of the project 'Veni, Vidi, Visualization: Improving Analysis Communication for a Million-Dollar Machine' at the Data Analytics and Computational Statistics Chair, Hasso Plattner Institute.

📊 Web server 💻 Python library Miscellaneous
Guide
Implementation
Installation
Example
Third-party resources
License

📊 Web server

Guide

Visit https://pepmeasure.org to use PepMEASURE through an intuitive web interface.

Screenshot of PepMEASURE web server

Implementation

The web server's frontend was developed using Streamlit and the source code is available in a separate GitHub repository. All functionalities regarding the computation of features and visualisations are based on PepMEASURE.

💻 Python library

Installation

  1. Make sure you have a Python package manager installed (e.g., pip or uv)
  2. Install PepMEASURE
    pip install pepmeasure
  3. Import and use PepMEASURE in your project!

Example

  1. Initialize a calculator instance
    import pandas as pd
    from pepmeasure import Calculator
    calc = Calculator(
       dataset=pd.read_csv("path/to/dataset"),
       metadata=pd.read_csv("path/to/metadata"),
       seq="PEPTIDE",
    )
    
  2. Select desired features and visualisations with individual parameters
    calc.set_feature_params(
       gravy=True,
       molecular_weight=True,
    )
    calc.set_plot_params(
       hydropathy_profile=True,
       classification=True,
       classification_classify_by="charge",
    )
    
  3. Compute and show results
    print(calc.get_features())
    plots = calc.get_plots()
    for plot in plots:
       plot.show()
    

Optionally, custom colors can be used for the visualisations:

calc.set_colors(["#FF0000", "#00FF00", "#0000FF"])

Third-party resources

Type Name DOI Saved in
Code Isoelectric Point Calculator 2.0 10.1093/nar/gkab295 - /src/pepmeasure/external/ipc-2.0.1

License

This project is licensed under the MIT License.

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

pepmeasure-0.3.0.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

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

pepmeasure-0.3.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file pepmeasure-0.3.0.tar.gz.

File metadata

  • Download URL: pepmeasure-0.3.0.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pepmeasure-0.3.0.tar.gz
Algorithm Hash digest
SHA256 93402591ab4e53d9b6f823fc79c46031c7f538142ae08656628cc4777d74dca7
MD5 a50982aeee6d6e58b058a26a92580e7c
BLAKE2b-256 5172fbe616ac852e7abd46e1d0a89989a243e0f9fbe2d2975ac450dd9ce22f24

See more details on using hashes here.

File details

Details for the file pepmeasure-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pepmeasure-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pepmeasure-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79d3e125922d86237668928f786d00d07682fe810207db82daa2839c5a03829f
MD5 11a96b38d7940c53d9d5371870e54cb8
BLAKE2b-256 65edfacddb4470c5c5f565342dba3170a404e03cdd1022c3938b4ff0c2c2471a

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