A swiss army knife for PDB files.
Maintained. Last release 4 weeks ago, commits in 3 of the last 26 weeks. Weaker on commit activity and security practices.
pip install pdb-toolspdb-tools
A swiss army knife for manipulating and editing PDB files.
Looking for the other pdb-tools?
The Harms lab maintains a set of tools also called pdbtools, which perform a
slightly different set of functions. You can find them here.
About
Manipulating PDB files is often painful. Extracting a particular chain or set of residues, renumbering residues, splitting or merging models and chains, or just ensuring the file is conforming to the PDB specifications are examples of tasks that can be done using any decent parsing library or graphical interface. These, however, almost always require 1) scripting knowledge, 2) time, and 3) installing one or more programs.
pdb-tools were designed to be a swiss-knife for the PDB format. They have no
external dependencies, besides obviously the Python programming language.
They are the descendant of a set of old FORTRAN77 programs that had the
particular advantage of working with streams, i.e. the output of one script
could be piped into another. Since FORTRAN77 is a pain too, I rewrote them in
Python and added a few more utilities.
The philosophy of the scripts is simple: one script, one task. If you want to do two things, pipe the scripts together. Requests for new scripts will be taken into consideration - use the Issues button or write them yourself and create a Pull Request.
Installation Instructions
pdb-tools are available on PyPi and can be installed though pip. This is the
recommended way as it makes updating/uninstalling rather simple:
pip install pdb-tools
Because we use semantic versioning in the development of pdb-tools, every bugfix
or new feature results in a new version of the software that is automatically published
on PyPI. As such, there is no difference between the code on github and the latest version
you can install with . To update your installation to the latest version of the code
run: