1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504
|
# Protein-Ligand Interaction Profiler (PLIP)
## What is PLIP?
The Protein-Ligand Interaction Profiler (PLIP) is a tool to analyze and visualize protein-ligand interactions in PDB files.
## Why should I use PLIP?
#### Comprehensive Detection of Interaction
* Eight types of noncovalent interactions
* Interaction between proteins and
* small molecules
* ions
* polymers
* DNA / RNA
* Rich additiona information on binding, e.g. unpaired functional groups
#### Everything Is Automated
* Direct download of PDB structures from PDB server
* Automatic detection and grouping of relevant ligands in a PDB file
* No need for special preparation of a PDB file, works out of the box
* Automatic fixiing of errors in PDB files
#### Flexible Usage
* Processing of custom PDB files containing protein-ligand complexes (e.g. from docking)
* Atom-level interaction reports in TXT and XML formats for easy parsing
* Generation of PyMOL session files (.pse), enabling easy preparation of images for publications and talks
* Rendering of 3D interaction diagram for each ligand and its interactions with the protein
## Get PLIP running
#### 1. Install dependencies
The following instructions work on a unix machine.
If you are using Windows or OSX, the process may differ.
Please refer to the webpages of the corresponding tools to get help for installation.
To install all dependencies for PLIP, either just install PyMOL and then use the `pip` installation routine or install all tools and clone from GitHub.
The current version of PLIP depends on
* OpenBabel >=2.3.2
* PyMOL 1.7.x with Python bindings
* Imagemagick >=6.9.x (optional)
and should be executed with Python 2.7.x.
Example command for Ubuntu using apt-get
```bash
sudo apt-get install pymol openbabel python-openbabel imagemagick
```
#### 2. Get PLIP on your machine
There are several options to get PLIP on your machine.
If you have the Python package manager `pip` installed, you can install PLIP in a terminal via the following command:
```bash
pip install plip
```
If you want to clone from Github, open a new system terminal and clone the repository using
```bash
git clone https://github.com/ssalentin/plip.git ~/pliptool
```
You can use any other user directory, but we will use the one given above for the documentation.
#### 3. Simplify access to PLIP
The package manager `pip` will create symlinks for you so you can call PLIP using `plip` in the command line. If you cloned from Github, use the following command to do the same:
```bash
alias plip='~/pliptool/plip/plipcmd'
```
## Analyze a PDB structure with PLIP
### Single Structures
Having PLIP installed, you can run
```bash
plip -h
```
to list all available command line options.
We will go through all important settings in this section.
A typical application of PLIP involves the analysis of protein-ligand interactions in a structure from the Protein Data Bank (PDB).
PLIP can automatically fetch the entry from the PDB server when a valid PDB ID is provided.
```bash
plip -i 1vsn -v
```
The command above will fetch the PDB entry 1vsn from the server, analyze all interactions and print out the results (verbose mode).
No output files are produced at this point.
The same can be done for local PDB files.
```bash
wget http://files.rcsb.org/download/1EVE.pdb
plip -f 1EVE.pdb -v
```
The output formats can be added in any combination, currently including:
* XML report files (`-x`, best for automatic processing)
* Text report files (`-t`, human-readable)
* PyMOL session files (`-y`)
* Ray-traced images (`-p`)
```bash
plip -i 1osn -pyx
```
The command above will fetch the PDB entry 1osn, analyze all interactions and produce one XML result file (`-x`) as well as rendered images (`-p`) and PyMOL session files (`-y`) for each binding site.
### Batch Mode
PLIP can process multiple structures at once, either from PDB or local files.
To activate batch mode, just provide a list of PDB IDs or local file names, e.g.:
```bash
plip -i 1vsn 1osn 2reg -vx
```
PLIP will create subdirectories for each given structure in the output folder.
If in PDB ID mode (`i`), the folder structure will be nested and based on the two middle characters of the PDB ID.
The structure 1vsn in batch processing will have its output files in <outputfolder>/vs/1vsn .
### Detection of protein-peptide interactions
For the detection of ligands, PLIP relies on the separation of ATOM and HETATM entries in the PDB file.
The latter are searched for suitable ligands when running in normal mode.
Peptide ligands, however, are usually deposited as ATOM entries in a separate chain.
PLIP can not detect these entities automatically.
To switch into protein-peptide interaction mode, start PLIP with the option `--peptide`, followed by the peptide chain of interest, e.g.:
```bash
plip -i 5hi4 --peptides I -vx
```
### Detection of intra-chain interactions (__beta__)
Intra-protein interactions are important for the stabilization of a structure and can give valuable insights for protein engineering and drug discovery.
PLIP now supports detection of interactions within one chain.
To switch into intra-chain interaction mode, start PLIP with the option `--intra`, followed by the protein chain of interest, e.g.:
```bash
plip -i 5b2m --intra A -yv
```
Please note that detection within a chain takes much longer than detection of protein-ligand interactions,
especially for large structures.
## Changing detection thresholds
The PLIP algorithm uses a rule-based detection to report non-covalent interaction between proteins and their partners.
The current settings are based on literature values and have been refined based on extensive testing with independent cases from mainly crystallography journals, covering a broad range of structure resolutions.
For most users, it is not recommended to change the standard settings.
However, there may be cases where changing detection thresholds is advisable (e.g. sets with multiple very low resolution structures)
PLIP allows you to change the setting permanently or for one run.
#### Permanent change
PLIP settings are stored in the file `modules/config.py`, which is loaded in each run.
One section in the file includes assignments of standard values to all distance and angle thresholds, together with short descriptions.
Changing the values in this file means they will be changed permanently for PLIP.
Furthermore, filter settings for ligands (metal ions in complexes, unsupported ligands, warnings for possible artifacts) can be changed in this file as well.
#### Temporary change
Thresholds can be changed for each run using command-line parameters.
The naming of the variables is identical to those in the config file, but all lowercase.
Specify the
threshold you want to change and the new value, e.g. to change HYDROPH_DIST_MAX to 5 Angstrom, run PLIP using
```bash
plip -i 1vsn --hydroph_dist_max 5
```
All distance thresholds can be increased to up to 10 Angstrom. Thresholds for angles can be set between 0 and 180 degree.
If two interdependent thresholds have conflicting values, PLIP will show an error message.
## Further Options
PLIP offers further command line options which enables you to switch advanced settings.
* Set number `n` of maximum threads used for parallel processing (`--maxthreads <n>`)
* Do not automatically combine covalently bound ligands (`--breakcomposite`)
* Do not discard alternate locations (`--altlocation`)
* Set debug mode (`--debug`)
* Turn off automatic fixing of errors in PDB files (`--nofix`)
* Keep modified residues as ligands (`--keepmod`)
## Web Service
A web service for analysis of protein-ligand complexes using PLIP is available at
http://plip.biotec.tu-dresden.de/
The web site offers advanced functions to search for specific entries from PDB and lists the interaction results in the browser.
Additionally, the service used the BioLiP database to annotate biologically relevant ligands.
The option to change threshold, ligand filtering, and batch processing is only available in the command line tool and with the Python modules.
## Algorithm
PLIP uses a rule-based system for detection of non-covalent interactions between protein residues and ligands.
Information on chemical groups able to participate in a specific interaction (e.g. requirements for hydrogen bond donors) and interaction geometry (e.g. distance and angle thresholds) from literature are used to detect characteristics of non-covalent interactions between contacting atoms of protein and ligands.
For each binding site, the algorithm searches first for atoms or atom groups in the protein and ligand which could possibly be partner in specific interactions.
In the second step, geometric rules are applied to match groups in protein and ligand forming an interaction.
#### Detection and filtering of ligands
Previous to the detection step for the interactions, PLIP extracts all ligands contained in the structure.
Modified amino acids are identified and excluded using MODRES entries of the PDB files.
Additionally, it uses the BioLiP list of possible artifacts to remove ligands which are in this list and appear 15 times or more in a structure.
Just a few compounds are currently excluded, being listed in the PLIP config file.
#### Preparation of structures
Polar hydrogens are added to the structure and alternative conformations/models/positions removed.
Missing chains are assigned to ligands and non-standard ligand names (with special characters) altered to LIG.
#### Detection of possible interacting groups
##### Binding site atoms
The binding site distance cutoff is determined by adding up BS_DIST_MAX to the maximum extent to the ligand (maximum distance of a ligand atom to ligand centroid).
All protein atoms within this distance cutoff to any binding site atoms are counted as belonging to the binding site.
##### Hydrophobic Atoms
An atom is classified as hydrophobic if it is a carbon and has only carbon or hydrogen atoms as neighbours.
##### Aromatic Rings
OpenBabel is used to identify rings (SSSR perception) and their aromaticity.
In cases where no aromaticity is reported by OpenBabel, the ring is checked for planarity.
To this end, the normals of each atom in the ring to its neighbors is calculated.
The angle between each pair of normals has to be less than AROMATIC_PLANARITY.
If this holds true, the ring is also considered as aromatic.
##### Hydrogen Bond Donors and Acceptors
OpenBabel is used to identify hydrogen bond donor and acceptor atoms.
Halogen atoms are excluded from this group and treated separately (see below).
##### Charged Groups
The detection of charged groups is only exhaustive for the binding site, not the ligands.
For proteins, positive charges are attributed to the side chain nitrogens of Arginine, Histidine and Lysine.
Negative charged are assigned to the carboxyl groups in Aspartic Acid and Glutamic Acid.
In ligands, positive charges are assigned to quaterny ammonium groups, tertiary amines (assuming the nitrogen could pick up a hydrogen and thus get charged), sulfonium and guanidine groups.
Negative charges are reported for phosphate, sulfonate, sulfonic acid and carboxylate.
##### Halogen bonds donors and acceptors
Assuming that halogen atoms are not present in proteins (unless they are artificially modified), halogen bond donors are searched for only in ligands.
All fluorine, chlorine, bromide or iodine atoms connected to a carbon atom qualify as donors.
Halogen bond acceptors in proteins are all carbon, phosphor or sulphur atoms connected to oxygen, phosphor, nitrogen or sulfur.
##### Water
Water atoms are assigned to a ligand-binding site complex if their oxygen atoms are within a certain cutoff to the ligand.
The cutoff is determined by adding up BS_DIST_MAX to the maximum extent to the ligand (maximum distance of a ligand atom to ligand centroid).
This means the farthest distance of a ligand to a water atom is BS_DIST_MAX.
#### Detection of interactions
For an overview on geometric cutoffs used for the prediction of interactions, please refer to the config file.
Note that the threshold can not be changed for jobs running on PLIP Web.
The command line tool (sourcecode available for download), however, allows changing all listed parameters permanently or for single runs.
##### Hydrophobic Interactions
As hydrophobic interactions result from entropic changes rather than attractive forces between atoms, there are no clear geometries of hydrophobic association.
The observed attraction between hydrophobic atoms decays exponentionally with the distance between them.
A generous cutoff was chosen, identifying a prime set of hydrophobic interactions between all pairs of hydrophobic atoms within a distance of HYDROPH_DIST_MAX.
Since the number of hydrophobic interactions with such an one-step approach can easily surpass all other interaction types combined, it may strongly influence subsequent evaluation or applications as interaction fingerprinting.
To overcome this problem, the number of hydrophobic interactions is reduced in several steps.
First, hydrophobic interactions between rings interacting via π-stacking are removed.
This is done because stacking already involves hydrophobic interactions.
Second, two clustering steps are applied.
If a ligand atom interacts with several binding site atoms in the same residue, only the interaction with the closest distance is kept.
Subsequently, the set of hydrophobic interactions is checked from the opposite perspective: if a protein atom interacts with several neighboring ligand atoms, just the interaction with the closest distance is kept.
Together, these reduction steps help to report only the most representative hydrophobic interactions.
##### Hydrogen Bonds
A hydrogen bond between a hydrogen bond donor and acceptor is reported if several geometric requirements are fulfilled.
The distance has to be less than HBOND_DIST_MAX and the angle at the donor group (D-H...A) above HBOND_DON_ANGLE_MIN.
Since salt bridges involve purely electrostatic interactions as well as hydrogen bonds, it is not meaningful to report both interaction types between the same groups.
Thus, hydrogen bonds between atoms are removed if they belong to groups that already form a salt bridge to that atom.
As a general rule, a hydrogen bond donor can take part in only one hydrogen bond, while acceptor atoms can be partners in multiple hydrogen bonds (e.g. bifurcated hydrogen bonds).
For multiple possible hydrogen bonds from one donor, only the contact with the donor angle closer to 180 ° is kept.
##### π-Stacking
π-Stacking for two aromatic rings is reported whenever their centers are within a distance of PISTACK_DIST_MAX, the angle deviates no more than PISTACK_ANG_DEV from the optimal angle of 90 ° for T-stacking or 180 ° for P-stacking.
Additionally, each ring center is projected onto the opposite ring plane.
The distance between the other ring center and the projected point (i.e. the offset) has to be less than PISTACK_OFFSET_MAX.
This value corresponds approximately to the radius of benzene + 0.6 Å.
##### π-Cation Interactions
π-Cation interactions are reported for each pairing of a positive charge and an aromatic ring if the distance between the charge center and the aromatic ring center is less than PICATION_DIST_MAX.
In the case of a putative π-cation interaction with a tertiary amine of the ligand, an additional angle criterion is applied (see documentation in the source code).
##### Salt Bridges
Whenever two centers of opposite charges come within a distance of SALTBRIDGE_DIST_MAX, a salt bridge is reported.
In contrast to hydrogen bonds, there are no additonal geometric restrictions.
##### Water bridges
While residues can be bridged by more than one water molecule, for the prediction in this script the only case considered is one water molecule bridging ligand and protein atoms via hydrogen bonding.
The water molecule has to be positioned between hydrogen bond donor/acceptor pairs of ligand and protein with distances of the water oxygen within WATER_BRIDGE_MINDIST and WATER_BRIDGE_MAXDIST to the corresponding polar atoms of the donor or acceptor groups.
If a constellation with a water atom fulfils these requirements, two angles are checked.
The angle ω between the acceptor atom, the water oxygen and donor hydrogen has to be within WATER_BRIDGE_OMEGA_MIN and WATER_BRIDGE_OMEGA_MAX.
Additionally, the angle θ between the water oxygen, the donor hydrogen and the donor atom has to be larger than WATER_BRIDGE_THETA_MIN.
Similar to standard hydrogen bonds, a water molecule is only allowed to participate as donor in two hydrogen bonds (two hydrogen atoms as donors).
In the case of more than two possible hydrogen bonds for a water molecule as donor, only the two contacts with a water angle closest to 110 ° are kept
##### Halogen Bonds
Halogen bonds are reported for each pairing of halogen bond acceptor and donor group having a distance of less than HALOGEN_DIST_MAX and angles at the donor and acceptor group of HALOGEN_DON_ANGLE and HALOGEN_ACC_ANGLE with a deviation of no more than HALOGEN_ANG_DEV
##### Metal Complexes
For metal complexes, PLIP considers metal ions from a set of more than 50 species (see PLIP config for more details).
Possible interacting groups in the protein are sidechains of cystein (S), histidine (N), asparagine, glutamic acid, serin, threonin, and tyrosin (all O), as well as all main chain oxygens.
In ligands, following groups are considered for metal complexation: alcohols, phenolates, carboxylates, phosphoryls, thiolates, imidazoles, pyrroles, and the iron-sulfur cluster as a special constellation.
For one metal ions, all groups with a maximum distance of METAL_DIST_MAX to the ligand are considered for the complex.
After assigning all target groups to one metal ions, the resulting set of angles of the complex is compared with known sets of angles from common coordination geometries (linear [2], trigonal planar [3], trigonal pyramidal [3], tetrahedral [4], square planar [4], trigonal bipyramidal [5], square pyramidal [5], and octahedral [6]).
The best fit with the least difference in observed targets is chosen as an estimated geometry and targets superfluous to the constellation are removed.
## Additional Information
### Exit error codes
| Exit code | Description |
| ------------- | ------------- |
| **1** | Unspecified Error |
| **2** | Empty PDB file as input |
| **3** | Invalid PDB ID (wrong format) |
| **4** | PDB file can't be read by OpenBabel |
| **5** | Valid PDB ID, but no PDB file on wwwPDB |
### Legend for PyMOL visualization
#### Structural Elements
| Description | RGB | PyMOL color | Representation |
| ------------ | --- | ------------| ---------------|
| Protein | [43, 131, 186] | myblue (custom) | sticks |
| Ligand | [253, 174, 97] | myorange (custom) | sticks |
| Water | [191, 191, 255] | lightblue | nb_spheres |
| Charge Center | [255, 255, 0] | yellow | spheres |
| Aromatic Ring Center | [230, 230, 230] | grey90 | spheres |
| Ions | [250, 255, 128] | hotpink | spheres |
#### Interactions
| Description | RGB | PyMOL color | Representation |
| ------------ | --- | ------------| -------------- |
| Hydrophobic Interaction | [128, 128, 128] | grey50 | dashed |
| Hydrogen Bond | [0, 0, 255] | blue | solid line |
| Water Bridges | [191, 191, 255] | lightblue | solid line |
| pi-Stacking (parallel) | [0, 255, 0] | green | dashed line |
| pi-Stacking (perpendicular) | [140, 179, 102] | smudge | dashed line |
| pi-Cation Interaction | [255, 128, 0] | orange | dashed line |
| Halogen Bond | [54, 255, 191] | greencyan | solid line |
| Salt Bridge | [255, 255, 0] | yellow | dashed line |
| Metal Complex | [140, 64, 153] | violetpurple | dashed line |
### XML Report Documentation
**report**
Contains all binding site information
**plipversion**
Version of PLIP used for generating the output file
**bindingsite**
Information for one bindingsite. Has a unique ID and attribute `has_interactions`
**identifiers**
Ligand/bindingsite identifiers
**longname**
Long name of ligand, contains all het ids of ligands in one composite cluster
**ligtype**
Classification of ligand, can be SMALLMOLECULE/POLYMER/DNA/RNA/ION or combinations of the first four with ION
**hetid**
PDB hetero ID of the ligand
**chain**
Chain assigned to the ligand in the PDB file
**position**
Position in chain of the ligand in the PDB file
**composite**
Can be True or False depending on whether the ligand consists of several separate subunits or not
**members**
Lists the members of a composite ligand cluster
**smiles**
The SMILES string of the complete (composite) ligand
**lig_properties**
Additional information on the ligand, i.e. number of functional atoms
**num_heavy_atoms**
Number of heavy atoms in the ligand
**num_hbd**
Number of hydrogen bond donors in the ligand
**num_unpaired_hbd**
Number of unpaired hydrogen bond donors in the ligand (not involved as acceptor/donor in hydrogen bonds, salt bridges,
water bridges, metal complexes)
**num_hba**
Number of hydrogen bond acceptors in the ligand
**num_unpaired_hba**
Number of unpaired hydrogen bond acceptors in the ligand (not involved as acceptor/donor in hydrogen bonds, salt bridges,
water bridges, metal complexes)
**num_hal**
Number of halogen bond donors in the ligand
**num_unpaired_hal**
Number of unpaired halogen bond donors in the ligand
**num_aromatic_rings**
Number of aromatic rings in the ligand
**interacting chains**
Lists the chains the ligand interacts with
**bs_residues**
Listing of binding site residues the ligand is near to or interacts with. Contains the type of amino acid, information
on contact, a unique id and the minimal distance to the ligand in Angstrom
**interactions**
Detailed information on all interactions (general attributes documented below)
**resnr**
Residue number of interacting amino acid
**restype**
Residue type of interacting amino acid
**reschain**
Residue chain of interacting amino acid
**dist**
Distance of interacting atoms or groups in Angstrom
**ligcoo**
Coordinates of interacting ligand atom or interaction center in ligand
**protcoo**
Coordinates of interacting protein atom or interaction center in ligand
## Testing
To run the tests, run the following set of commands.
```bash
cd ~/pliptool/plip/test
python -m unittest test*
```
|