Skip to main content

A Python package to calculate pKa values for proteins

Project description

INSTALLATION (using PyPI)

The package requires ambertools which can be installed as given below (only works with Python versions <3.14)

conda create -n pkaani python=3.13
conda install conda-forge::ambertools

Then, simply use the command below:

pip install pkaani

Python script usage

The snippet below shows how to use the calculate_pka function within a python script - the input argument is a list of strings which are PDB file names in the working directory. Given a list of PDBs titled "1brs.pdb" and "6oge_de.pdb":

from pkaani.pkaani import calculate_pka as calculate_pkaani
  
pKas = calculate_pkaani(["1brs.pdb","6oge_de.pdb"])

INSTALLATION (from source code)

Navigate to this repository for the source code for this pyPI upload: https://github.com/adnaksskanda/pKa-ANI/tree/pyPI_upload

Prior to the installation of pKa-ANI, users should make sure they have installed conda.

To install pKa-ANI, navigate to the directory of the source that you've downloaded and;

conda env create -f pkaani_env.yaml

This will create a conda environment named pkaani and install all required packages. After the environment is created, activate the environment and install the package.

conda activate pkaani 
pip install .

PREREQUISITES:

  • miniconda/anaconda

If pkaani_env.yaml is not used, users should make sure the following packages are installed.

  • python>=3.10
  • numpy
  • scipy
  • pytorch
  • torchani==2.2.0
  • scikit-learn==1.6.1
  • ase
  • joblib
  • ambertools
  • setuptools

USAGE

pKa-ANI requires PDB files to have H atoms that are added with default ionization states of residues: ASP, GLU, LYS, TYR, HIE.

Due to this reason, input PDB file(s) are prepared before the calculation of pKa values (output PDB file 'PDBID_pkaani.pdb').

We would like to warn users, that our models are trained to predict pKa values for apo-proteins. Due to this, any residue that is not an aminoacid is removed from PDB file(s) during the preparation.

Example command line usages:

  • If PDB file doesnt exist, it is downloaded and prepared for pKa calculations.
pkaani -i 1BNZ
      
pkaani -i 1BNZ.pdb
  • Multiple files can be given as inputs
pkaani -i 1BNZ,1E8L
  • If a specific directory is wanted:
pkaani -i path_to_file/1BNZ
      
pkaani -i path_to_file/1BNZ,path_to_file/1E8L

Arguments:

-h: Help

-i: Input files. Inputs can be given with or without file extension (.pdb). 
    If PDB file is under a specific directory (or will be downloaded) the path                 
    can also be given as path_to_file/PDBFILE. Multiple PDB files can be given 
    by using "," as separator (i.e. pkaani -i 1BNZ,1E8L).

CITATION

Gokcan, H.; Isayev, O. Prediction of Protein p K a with Representation Learning. Chem. Sci. 2022, 13 (8), 2462–2474. https://doi.org/10.1039/D1SC05610G.

LICENSING

Please read LICENSE file.

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

pkaani-0.1.12.tar.gz (23.8 MB view details)

Uploaded Source

Built Distribution

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

pkaani-0.1.12-py3-none-any.whl (24.6 MB view details)

Uploaded Python 3

File details

Details for the file pkaani-0.1.12.tar.gz.

File metadata

  • Download URL: pkaani-0.1.12.tar.gz
  • Upload date:
  • Size: 23.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for pkaani-0.1.12.tar.gz
Algorithm Hash digest
SHA256 d7d574a5250a8f53f020e56826c263f531be621b1ea2090d939e46df0234bfd3
MD5 0a360f5616a12ac7b9ef3c0f8811bd3e
BLAKE2b-256 c6768775c856b84ff1e4ed5ed5f3c32db8f54fa8bdeb287ec00eb649a29a28ad

See more details on using hashes here.

File details

Details for the file pkaani-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: pkaani-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 24.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for pkaani-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 7d9e1aa2bd99c852f8a63a9d05c2ad422a97e26ab25ad944f83f8a282db7efc8
MD5 f898ab3e463b61623ae010fd2aad9acd
BLAKE2b-256 d35d9c0b5f6ef5d928c42c1284858b8cd6a1e0d7eb2220987d38c787c73253cf

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