Skip to main content

PredictBind is a wrapped inspired and built around P2Rank as ligand binding site predictor for proteins

Project description

PredictBind

PredictBind is a wrapper inspired and built around P2Rank.

OS: Linux or Mac

This wrapper was written on an M1 mac and tested on UNIX systems. Requires python3 and java(versions 8 to 20).

Dependency check

python3 --version
java --version

Should return something like

Python 3.x.y

and

openjdk version "11.0.22" 2024-01-16
OpenJDK Runtime Environment Homebrew (build 11.0.22+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.22+0, mixed mode)

Installation

Make sure you have the listed dependencies and install binder with pip.

pip install PredictBind

Commands

usage: PredictBind.py [-h] [-d {direcory_name}] [-e {file}.pdb] [-f {file}.pdb] [-t {core_num}]
                 [--files [{file1}.pdb {file2}.pdb ...]] [-v] [-ch] [-pm]

Use PredictBind.py to predict ligand binding sites of proteins from their .pdb files.

options:
  -h, --help            show this help message and exit
  -d {direcory_name}, --directory {direcory_name}
                        Analyse all files located in one local directory.
  -e {file}.pdb, --evalpredict {file}.pdb
                        Path/to/pdb.
  -f {file}.pdb, --file {file}.pdb
                        Path/to/pdb.
  -t {core_num}, --threads {core_num}
                        Specify num. of working threads for parallel dataset processing
  --files [{file1}.pdb {file2}.pdb ...]
                        Analyse many local pdb files.
  -v, --verbose         Get more detailed output of the process to the standard error.
  -ch, --chimera        Open with chimera immediately when file is ready to be visualised
  -pm, --pymol          Open with pymol when file is ready to be visualised

Tutorials

TBD.

Examples

One PDB file

PredictBind.py -f 1gln.pdb 

Dir

  • If you have a directory of pdb files you want to analyse, run the --directory (-d) method:
PredictBind.py -d directory_name/

Multiple files

PredictBind.py --files 1gln.pdb 2ew2.pdb subfol1/1gln.pdb  

Visualisation

The output can directly visualised with the --chimera (-ch) and --pymol (-pm) switch, given that you have them installed on your computer, by including the switch when running the comand. Note: this only woks for the single-file methods (-f); for the --directory and --local_many you need to open the visualisation cmd files manually (see: Output below).

Ex.

PredictBind.py -f 1gln.pdb -ch

Output

A prediction for a file {pdb}.pdb will create the following structure in the folder in which PredictBind.py was executed.

predict_{pdb}/
├── {pdb}.pdb_predictions.tsv
└── visualizations/
    ├── chimera_{pdb}.cmd
    ├── {pdb}.pdb.pml
    └── data/
        ├── {pdb}.pdb_points.pdb.gz
        └── {pdb}.pdb 

TSV file:

The tsv file lists the predicted pockets in order of their score. Each pocket has the following attributes:

  • rank

  • score

  • probability

  • sas_points - (int) number of solvent accessible surface points

  • surf_atoms - (int) integer of the number of surface atoms

  • center_x - (float) the predicted pockets x center

  • center_y - (float) the predicted pockets y center

  • center_z - (float) the predicted pockets z center

  • residue_ids - (py dict) the residue sequence numbers that create the pocket { Chain : [ residue sequence numbers ] }

  • residue_names - (py dict) the residue names that create the pocket { Chain : [ residue names ] }

  • residue_types - (py dict) the character of the residues that create the pocket { Chain : [ characters ] }

    • 'N' represents non-polar amino acids
    • 'P' represents polar amino acids
    • '+' represents positively charged amino acids
    • '-' represents negatively charged amino acids
    • '0' a specific residue for which there is no info in the program
  • surf_atom_ids - (py list) the atom serial number of all the atoms that are on the surface of the pocket

Information from the PDB is taken in this fashion:

Columns Data Justification Data Type
1-4 "ATOM" left character
7-11 Atom serial number right integer
13-16 Atom name left* character
17 Alternate location indicator - character
18-20 Residue name right character
22 Chain identifier - character
23-26 Residue sequence number right integer
27 Code for insertions of residues - character
31-38 X orthogonal Angstrom coordinate right floating
39-46 Y orthogonal Angstrom coordinate right floating
47-54 Z orthogonal Angstrom coordinate right floating
55-60 Occupancy right floating
61-66 Temperature factor right floating
73-76 Segment identifier (optional) left character
77-78 Element symbol right character
79-80 Charge (optional) - character

Chimera CMD file

Has neccessary information to create the visualisations in chimera. The pockets are saved as selections titled "Pocket{NUM}" and colored untill the 18th pockets.

The colors are ranked the same in all output, so it can be a visual aid for quick understanding of the pockets' rankings. This is true only for the Chimera file, not for the PyMol, because in PyMol the pockets and their colors can be easily viewed in the side panel.

Color Rank
red 1
orange 2
yellow 3
green 4
cyan 5
blue 6
medium blue 7
purple 8
hot pink 9
magenta 10
white 11
gray 12
black 13
tan 14
slate gray 15
dark khaki 16
plum 17
rosy brown 18

run :

chimera {path}/predict_{pdb}/visualizations/chimera_{pdb}.cmd

PyMol CMD file

In PyMol the pockets and their colors are conveniently displayed in the side panel. run:

pymol {path}/predict_{pdb}/visualizations/{pdb}.pdb.pml

Theoretical background

TBD

Analysis

TBD

References

This software is a lightweight version of p2rank.

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

PredictBind-1.0.6.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

PredictBind-1.0.6-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file PredictBind-1.0.6.tar.gz.

File metadata

  • Download URL: PredictBind-1.0.6.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for PredictBind-1.0.6.tar.gz
Algorithm Hash digest
SHA256 2865e60bae667f04f6a89f86e777ee99f01a82d5239a154001c85795f0625bc3
MD5 a0999d9ba67cc7650fcfaca15435308a
BLAKE2b-256 d86748e4f5fbc777340d72c40a4b2a2580c93ec56d499ae38454d4fd50f8c4a9

See more details on using hashes here.

File details

Details for the file PredictBind-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: PredictBind-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for PredictBind-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7b7696cbeeb3be77c98f3bd1eac8c387b84cb0a3254b34df4533b39653dd1cd6
MD5 d19d28208a0ef18a4125070d807c0075
BLAKE2b-256 0b940fa01f1495e4b67856667b7379d9a7b7a675e4a5a52a5666a9c5ae895748

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