Skip to main content

License: MIT build workflow codecov

pyProtein

pyProtein does basic calculations on polypeptides/proteins/enzymes. Methods are contained in class protein. Is intended to be included into scripts for automated calculations.

Currently only calculations for compounds with amino acid residues (proteins/ enzymes/polypeptides) are supported (so no synthetic polymers). As an input, the protein composition as amino acid abundance or amino acid sequence must be given.

The package contains functions for charge calculations of proteins:

  • The calculations are done with the Henderson-Hasselbalch equation, assuming that the individual amino acid residues do not show interactions which alter the pKa values to a relevant extent. As such, the calculations are done similar to e.g. the "ExPASy Compute pI/Mw tool" or the "Prot pi | Protein Tool".
  • Calculates the charge states of proteins at a given pH value.
  • Calculates the charge curve of proteins, i.e. the protein charge in a given pH value interval.
  • Calculates the isoelectric point (IEP) of proteins.
  • The charges can be given as total charge, separated into postive/negative charges, or as charges carried by the individual amino acids.
  • Currently contains four different pKa data tables for IEP and charge calculations (Bjellqvist, IPC, IPC2, EMBOSS). It is relatively straight-forward to implement other pKa tables is necessary.

The package can calculate some other protein properties:

  • Nitrogen content
  • Molar mass
  • Mean residue molar mass
  • Elemental composition

The package can handle chemical protein modifications:

  • Can take modifications into account for calculated protein properties, such as IEP, molar mass, or nitrogen content.
  • Currently implemented modifications are methacryl modifications of amino/hydroxy groups and aminoethyl modifications of carboxylic acid groups.
  • N- and C-terminal amino and carboxylic acid groups are also treated as modifications. I they should be taken into account for the calculations, they need to be included explicitly.
  • Other modifications must be listed with their characteristics in the DataFrame chain_modifications (see amino_acid_properties.py). Implemenation is rather easy.

For imformation on how to use it:

  • See docstrings.
  • Or look at how the tests are done in the tests folder.

Requirements

Requirements are listed in the requirements.txt file.

Installation

Download repository and run:

pip install -e .

pyProtein is also part of PyPI, so install with:

pip install pyProtein

However, the newest version can always be found here.

Metadata

Release files for pyProtein 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyProtein 0.0.4
File Size Uploaded
pyprotein-0.0.4.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyProtein 0.0.4
File Interpreter ABI Platform
pyprotein-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 29.8 kB

Release files / pyprotein-0.0.4.tar.gz

Download URL pyprotein-0.0.4.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d5b22b35fc08a36adf51f7424cf01b2c269a49fcb66030368a034a36e42da84d
BLAKE2b-256 checksum
How to use checksums
09db0fa8ee76e64ab0f5c75ba519ea1dc66225573f82143039304257151676ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / pyprotein-0.0.4-py3-none-any.whl

Download URL pyprotein-0.0.4-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a0c5d970e08fabd6d1326408e5d75089c8500220f4a623de04613c066bb58a7
BLAKE2b-256 checksum
How to use checksums
99d114a70cc4d8a6092e732e8cbaa21f84438f21139c475b4206d98ac0163d6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page