You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-35
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
A set of tools for manipulating and doing calculations on wwPDB macromolecule structure files
4
4
5
+
PDBtools has recently changed. The original version was a set of python scripts to be downloaded and used locally on the command line. It has now been reorganized into a python packaged and scripts are now installed globally. Thus, you can run any of the old pdb_tools from the commandline from anywhere on your filesystem.
6
+
7
+
If you'd like to download the old version of pdbtools, download version [v0.1](https://github.com/harmslab/pdbtools/releases/tag/v0.1).
8
+
5
9
##Introduction
6
10
pdbTools is a set of command line [python](http://www.python.org) scripts that manipulate [wwPDB](http://www.wwpdb.org/) protein and nucleic acid structure files. There are many programs, both open source and proprietary, that perform similar tasks; however, most of these tools are buried within programs of larger functionality. Thus, relatively simple calculations often involve learning a new program, compiling modules, and installing libraries. To fill a niche (and get the tasks done that I needed done), I started writing my own toolset. This has evolved into the pdbTools suite. The suite of programs is characterized by the following philosophy:
7
11
@@ -13,64 +17,80 @@ Most of the scripts will run "out of the box" using a python interpreter. The c
13
17
14
18
*Note:* These scripts are only compatible with Python version 2.4-2.7.
15
19
20
+
## Installation
21
+
22
+
Install the development version by cloning this repo and running `pip`:
23
+
```
24
+
pip install -e .
25
+
```
26
+
from inside the package.
27
+
16
28
##Current functions
17
29
18
30
###Miscellaneous
19
-
* download pdb files from the RCSB database: [pdb_download.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_download.py)
31
+
* download pdb files from the RCSB database: [download.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/download.py)
20
32
21
33
###Structure-based calculations
22
34
####Geometry
23
-
* calculate protein center of mass: [pdb_centermass.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_centermass.py)
* find disulfide bonds based on distance: [pdb_disfulfide.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_disulfide.py)
28
-
* find residues within some distance of each other: [pdb_contact.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_contact.py), [pdb_water-contact.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_water-contact.py), [pdb_close-contacts.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_close-contacts.py)
29
-
* find number of atoms neighboring another: [pdb_neighbors.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_neighbors.py)
30
-
* find ligands in structure file (ignoring boring ligands like water): [pdb_ligand.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_ligand.py)
31
-
* figure out oligomerization state of macrmolecule: [pdb_oligomer.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_oligomer.py)
35
+
* calculate protein center of mass: [centermass.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/centermass.py)
* find disulfide bonds based on distance: [disfulfide.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/disulfide.py)
40
+
* find residues within some distance of each other: [contact.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/contact.py), [water-contact.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/water-contact.py), [close-contacts.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/close-contacts.py)
41
+
* find number of atoms neighboring another: [neighbors.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/neighbors.py)
42
+
* find ligands in structure file (ignoring boring ligands like water): [ligand.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/ligand.py)
43
+
* figure out oligomerization state of macrmolecule: [oligomer.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/oligomer.py)
* calculate the dipole moment of the protein: [pdb_moment.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_moment.py)
36
-
* calculate pKa of ionizable groups using the Solvent-Accessibility-modified Tanford-Kirkwood method [pdb_satk.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_satk.py) (requires fortran compiler)
* calculate the dipole moment of the protein: [moment.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/moment.py)
48
+
* calculate pKa of ionizable groups using the Solvent-Accessibility-modified Tanford-Kirkwood method [satk.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/satk.py) (requires fortran compiler)
* offset all residues by a fixed amount: [pdb_offset.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_offset.py)
49
-
* center protein in xyz space: [pdb_centermass.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_centermass.py)
50
-
* places the asymmetric unit inside the unit cell: [pdb_centerasu.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_centerasu.py)
51
-
* take subset of residues from file: [pdb_subset.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_subset.py)
52
-
* split an NMR ensemble structure into individual files: [pdb_splitnmr.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_splitnmr.py)
53
-
* take a set of pdb files and create an individual directory for each one: [pdb_pdb2dir.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_pdb2dir.py)
54
-
* load data into the b-factor column: [pdb_bfactor.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb_bfactor.py)
55
-
56
-
Some of the programs are written as interfaces to other programs: [CHARMM](http://www.charmm.org/), [NACCESS](http://www.bioinf.manchester.ac.uk/naccess/ NACCESS), which must be downloaded and installed separately if their functions are desired. To use pdb_satk.py, a set of fortran packages must be compiled.
* offset all residues by a fixed amount: [offset.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/offset.py)
61
+
* center protein in xyz space: [centermass.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/centermass.py)
62
+
* places the asymmetric unit inside the unit cell: [centerasu.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/centerasu.py)
63
+
* take subset of residues from file: [subset.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/subset.py)
64
+
* split an NMR ensemble structure into individual files: [splitnmr.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/splitnmr.py)
65
+
* take a set of pdb files and create an individual directory for each one: [pdb2dir.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/pdb2dir.py)
66
+
* load data into the b-factor column: [bfactor.py](https://github.com/harmslab/pdbtools/blob/master/pdbTools/bfactor.py)
67
+
68
+
Some of the programs are written as interfaces to other programs: [CHARMM](http://www.charmm.org/), [NACCESS](http://www.bioinf.manchester.ac.uk/naccess/ NACCESS), which must be downloaded and installed separately if their functions are desired. To use satk.py, a set of fortran packages must be compiled.
57
69
58
70
59
71
##Usage
60
72
61
-
Almost all programs in the pdbTools suite have the same usage:
73
+
### Commandline usage
74
+
75
+
Almost all programs in the pdbTools suite have the same command-line usage:
62
76
63
-
pdb_XXXX.py pdb_input optional_args > output
77
+
pdb_XXXX pdb_input optional_args > output
64
78
65
79
**pdb_input** can be one of the following (in any arbitrary combination):
66
80
* pdb files
67
81
* directories of pdb files
68
82
* four-character pdb ids
69
83
* text files containing whitespace delimited (i.e. space, tab, carriage return) lists of any combination of the other allowed types of arguments. If the list of arguments contains pdb files or ids that do not exist locally, the parser will attempt to download the files from the RCSB database.
70
84
71
-
**optional_args**: Although the arguments to each program are identical, the options are quite different depending on the program requirements. The best way to learn how to use a particular program is to type pdb_XXXX.py --help. This will spit out a list of available options. In most cases, the options are actually optional: the program will use a sane default if none is specified. In some cases (notably pdb_mutator.py), options must be specified for the program to run.
85
+
**optional_args**: Although the arguments to each program are identical, the options are quite different depending on the program requirements. The best way to learn how to use a particular program is to type `XXXX.py` --help. This will spit out a list of available options. In most cases, the options are actually optional: the program will use a sane default if none is specified. In some cases (notably `mutator.py`), options must be specified for the program to run.
72
86
73
-
**output**: Most scripts dump out a pdb file to standard out. This can be captured using the ">" redirect. Some write an output file that uses the name of the input pdb file as a suffix (e.g. pdb_close-contacts.py 1stn.pdb creates a file called 1stn.pdb.close_contacts).
87
+
**output**: Most scripts dump out a pdb file to standard out. This can be captured using the ">" redirect. Some write an output file that uses the name of the input pdb file as a suffix (e.g. `close-contacts.py 1stn.pdb` creates a file called 1stn.pdb.close_contacts).
88
+
89
+
### API
90
+
91
+
Version 0.2 has moved all `pdbtools` into a set of modules. These can be used to develop new scripts easily.
92
+
93
+
Note: You can download the original pdbtools scripts (prior to packaging) [here](https://github.com/harmslab/pdbtools/releases/tag/v0.1).
74
94
75
95
##Third Party Software
76
96
Some scripts require installation of third-party programs. These should be installed according to the instructions given by the third-party, then placed into the $PATH variable. To use the scripts that require CHARMM, the `$CHARMM` environment variable must be set to the directory containing the `charmm` binary and the `$CHARMM_LIB` environment variable to the directory containing the charmm parameter files.
@@ -81,4 +101,3 @@ If you find a bug or have an idea for a program you'd like in this package, feel
81
101
82
102
##Project Owner
83
103
Mike Harms (https://github.com/harmsm, http://harmslab.uoregon.edu)
0 commit comments