ProteinDF_bridge is a Python library for reading, manipulating, and converting various molecular structure formats (PDB, mmCIF, MOL2, GRO, Amber PRMTOP, etc.) for use with ProteinDF.
- Python 3.8 or later
- Python packages:
numpypyyamlmsgpack
git clone https://github.com/ProteinDF/ProteinDF_bridge.git
cd ProteinDF_bridgepip install .For development (editable install):
pip install -e .from proteindf_bridge import BioPdb, AtomGroup
# Load structure from PDB
pdb = BioPdb()
pdb.load("protein.pdb")
# Get AtomGroup representation
ag = pdb.get_atomgroup()
print(f"Total atoms: {ag.get_number_of_all_atoms()}")pytestProteinDF_bridge is licensed under the GNU General Public License v3.0 (GPLv3).