A Python package to calculate pKa values for proteins
Project description
INSTALLATION (using PyPI)
Simply use the command pip install pkaani. Note that this allows users to run the calculate_pka function from within a python script, but the command line usage of pkaani, which involves the use of sander to do energy minimization of the structure before doing calculate_pka, will return a ModuleNotFound error because ambertools is not installed.
To install ambertools, you can use the command:
conda install conda-forge::ambertools
Note that the use of energy minimization CAN have a significant impact on the pKa results! However, we still wanted to have pKa-ANI available using purely pip install and separate from the pre-processing energy minimization - this will be used to integrate pKa-ANI with pdb2pqr.
INSTALLATION (from source code)
Navigate to this repository for the source code: https://github.com/isayevlab/pKa-ANI/tree/main
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;
conda activate pkaani
python setup.py install
PREREQUISITES:
- miniconda/anaconda
If pkaani_env.yaml is not used, users should make sure the following packages are installed.
- python=3.8
- numpy
- scipy
- pytorch
- torchani=2.2.0
- scikit-learn=1.0.2
- ase
- joblib
- ambertools
- setuptools=58.2.0
Other libraries the system may require : os,math,sys,io,csv,getopt,shutil,urllib.request,warnings
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pkaani-0.1.8.tar.gz.
File metadata
- Download URL: pkaani-0.1.8.tar.gz
- Upload date:
- Size: 23.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22d137a738e6ac354ed862d6c3df3c4ae0db920d1c538febee48e73cca0f7add
|
|
| MD5 |
d834af21c304d3ad901a323a5cc42389
|
|
| BLAKE2b-256 |
03e98c9437452de99b1ab7df00d1a3675187e2b9038cf0a1ad37b9401e715238
|
File details
Details for the file pkaani-0.1.8-py3-none-any.whl.
File metadata
- Download URL: pkaani-0.1.8-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70d9aec5b4596cbb91e50b81d9094c2daadddc4e2ff0b20a3391d9f703752988
|
|
| MD5 |
d73e6c190a71ea271a6b4a426a517b43
|
|
| BLAKE2b-256 |
443ce4f153dd512a4fbc5094b099bbc6d16eee8b74cfcab44a01ec178494e99c
|