PEPSIPy (PEPtide Sequence Information for Python) is an open-source Python library that provides methods for computing a wide range of peptide features, including sequence composition, charge, hydrophobicity, and other physicochemical properties. All features can be calculated on an entire dataset or on a single peptide sequence of interest. Additionally, PEPSI offers a selection of visualisations, such as hydropathy profile or amino acid classification.
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.
| 💻 Python library | 📊 Web-based dashboard | Miscellaneous |
|---|---|---|
| Installation Usage |
Installation Usage |
Third-party resources License |
- Make sure you have pip installed
- Install PEPSI
pip install pepsipy - Import and use PEPSI in your project!
- Initialize a calculator instance
import pandas as pd from pepsipy import Calculator calc = Calculator( dataset=pd.read_csv("data/peptides.csv"), metadata=pd.read_csv("data/metadata.csv"), seq="SVIDQSRVLNLGPITR", ) - Select desired features and plots with related parameters
calc.set_feature_params( gravy=True, molecular_weight=True, ) calc.set_plot_params( hydropathy_profile=True, classification=True, classification_classify_by="charge", ) - Compute and show results
print(calc.get_features()) plots = calc.get_plots() for plot in plots: plot.show()
- Make sure you have a virtual environment manager available, e.g., venv (recommended), or any other manager such as Conda or Poetry.
- Clone this repository and enter the frontend folder
git clone https://github.com/ronjakrg/pepsipy.git cd pepsipy/frontend - Create and activate a virtual environment and install all necessary requirements
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt - Start the server
python manage.py runserver - Open
http://127.0.0.1:8000/in the browser of your choice to use the PEPSI Dashboard!
- Select a dataset and a metadata file (must be uploaded to the
/datafolder) and a peptide sequence of interest. - Select desired features and plots with related parameters
- Click on 'Calculate' and inspect results
| Type | Name | DOI | Saved in |
|---|---|---|---|
| Dataset | Urinary peptidomics in youths with and without type 1 diabetes | 10.1074/mcp.RA119.001858 | - /data/peptides.csv- /data/metadata.csv |
| Code | Isoelectric Point Calculator 2.0 | 10.1093/nar/gkab295 | - /src/pepsipy/external/ipc-2.0.1 |
This project is licensed under the MIT License.