Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

PDB parser using SQL queries

Project description

PDB2SQL

PyPI DOI RSD Travis Coverage Status Codacy Badge Documentation Status DOI

pdb2sql is a Python package that leverage SQL queries to parse, manipulate and process PDB files. It provides:

  • a powerful pdb2sql object to convert PDB data in SQL database
  • strcuture transformation functions (rotations, translations...)
  • useful capablities to
    • calculate structure interface (contact atoms and residues)
    • calculate structure similarity (iRMSD, lRMSD, FNAT, DockQ...)

Installation

pip install pdb2sql

Documentation

The documentation of the package alongside small tutorial can be found at :

Quick Example

pdb2sql easily allows to load a PDB file in an object. Once loaded, the data can be parsed using SQL queries. To facilitate the adoption of the tool simple methods have been developped to wrap the SQL queries in simple methods. For example obtaining the positions of all carbon, nitrogen and oxygen atoms of chain A from all residues but VAL and LEU, one can use :

from pdb2sql import pdb2sql
pdb = pdb2sql('1AK4.pdb')
atoms = pdb.get('x,y,z',
                name = ['C','N', 'O'],
                no_resName = ['VAL','LEU'],
                chainID = 'A')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pdb2sql, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size pdb2sql-0.5.0-py3-none-any.whl (413.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pdb2sql-0.5.0.tar.gz (396.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page