A Python frontend to the LigPlot+ program, allowing batch processing of Protein Data Bank (PDB) files through the DIMPLOT algorithm.
- UNIX / Linux / MacOS X
- Python 3.7
- Install LigPlot+ from the EBI: http://www.ebi.ac.uk/thornton-srv/software/LigPlus/
- Download
components.ciffrom the PDB: ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif - Ability to
cdin the Terminal
-
Copy dimpyplot.py to the directory containing the PDB files you want to process (the working directory), or your $PATH.
-
Run: you can run either ligplot, dimplot or both.
python3 dimpyplot.py --fullreport(ligplot + dimplot)python3 dimpyplot.py --ligplotpython3 dimpyplot.py --dimplot
default parameteres:
--LigPlus_path
/Users/yuyuan/bin/LigPlus
--components_cif/Users/yuyuan/bin/LigPlus/data/components.cif
--ligplot_plus/Users/yuyuan/bin/LigPlus/lib/exe_mac64/
--wkdir./test_pdb
--chain1A
--chain2B -
This tool will process every PDB file in the working directory, generating new PDB files of the interaction surface, and PostScript visulization files.
- You can run
python3 dimpyplot.py -hfor help.
With dimpyplot, you will get a series of interactions between two chains of protein complex. Chord plot is a kind of visualization to show which residues play an important role between protein interfaces.
- Red line represents H-bond interactions.
- Green-tone line represents hydrophobic interactions.
- Any requirements from dimpyplot
- Python3 packages:
pandas,osand dependencies - R 3.6.1 or above
- R packages:
magrittr=1.5,circlize=0.4.13,optparse=1.7.1and dependencies
Run in python3: you can change variables to fit to your pdb chain & name.
wkdir: destinate where your pdb located.pdb_name: indicate which pdb your want to analysis in your pdb.chain1: which chain do you want to analysis in your pdb.chain2: the other chain you want to anlysis in your pdb.chain1_name: you can name as you want.chain2_name: you can name as you want.
Python3 script:
from dimpyplot_chord import dimplot_chord
wkdir = './test_pdb' #change here
pdb_name = '7a91_delta_npt_noPBC' #change here
chain1 = 'A' #change here
chain2 = 'B' #change here
chain1_name = 'hACE2' #change here
chain2_name = 'S1RBD' #change here
dimplot_chord(wkdir, pdb_name, chain1, chain2, chain1_name, chain2_name)
