Fixes problems in PDB files
Project description
PDBFixer
PDBFixer is an easy to use Python API for fixing problems in Protein Data Bank files in preparation for simulating them. It can automatically fix the following problems:
- Add missing heavy atoms.
- Add missing hydrogen atoms.
- Build missing loops.
- Convert non-standard residues to their standard equivalents.
- Select a single position for atoms with multiple alternate positions listed.
- Delete unwanted chains from the model.
- Delete unwanted heterogens.
- Build a water box for explicit solvent simulations.
See our manual
Installation
PDBFixer can be installed from PyPI using pip or uv (requires Python 3.13 or newer):
pip install pdbfixer
uv pip install pdbfixer
Conda and mamba packages are also available:
conda install -c conda-forge pdbfixer
Alternatively you can install from source, as described in the manual.
Versioning
PDBFixer uses versioningit to derive
its version from Git tags. Building from a source checkout therefore requires
either a cloned repository with Git metadata or a source distribution that
already includes the generated version. When no tag information is available,
the default version reported is 0+unknown. To see the version that will be
used for a build, run:
python -m versioningit
Usage
PDBFixer is now distributed purely as a Python API. The historical web and command-line interfaces have been removed in favour of direct use from Python code.
from pdbfixer import PDBFixer
fixer = PDBFixer(filename="input.pdb")
fixer.findMissingResidues()
fixer.findMissingAtoms()
fixer.addMissingAtoms()
fixer.addMissingHydrogens(pH=7.0)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdbfixer_neoralab-0.1.4.tar.gz.
File metadata
- Download URL: pdbfixer_neoralab-0.1.4.tar.gz
- Upload date:
- Size: 56.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da49fef06552438424ca51feb3e8fbfc62b24e6b248ef4938ccc9b63cfc903d6
|
|
| MD5 |
145cfe78f9b82475643aa7cb8b5cdabe
|
|
| BLAKE2b-256 |
dc516dd93bbba18ce0f3a1fabf6807fa7899f367caf8e33f939840011503179f
|
File details
Details for the file pdbfixer_neoralab-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pdbfixer_neoralab-0.1.4-py3-none-any.whl
- Upload date:
- Size: 57.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9144a7f6eb9434b8c100d97e33e92c843e69d53fc30a0b4b640cedd3906b9cda
|
|
| MD5 |
59b6b381a5147289fe28a205634cb3e7
|
|
| BLAKE2b-256 |
17906eb1265730f79f8e59061822428698703779f3aca6e1eeff75d5821c7e2b
|