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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyprotein-0.0.3.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

pyprotein-0.0.3-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file pyprotein-0.0.3.tar.gz.

File metadata

  • Download URL: pyprotein-0.0.3.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pyprotein-0.0.3.tar.gz
Algorithm Hash digest
SHA256 371a75aa194504e1b5faeb3b6bdfcf15ce0b62085073a1102141fdfc3801a3d8
MD5 b7df672a680191834fab54b4fb0e263b
BLAKE2b-256 db7f9299d65b5de01823622fe47e02aaafa890912510a9926fcb008104653aab

See more details on using hashes here.

File details

Details for the file pyprotein-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyprotein-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pyprotein-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 52511466f1218394ec02724fe8a67a3914357410ea032233aee96ff477db34c8
MD5 2671192491d2e7aad08eb0286c0342ac
BLAKE2b-256 4f60af51fcb801c29a53aa7e6707abf1ed525cfbfa160e31fefba5ce1f5e1b6d

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.4

2 files

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 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