Skip to main content

PDB parser using SQL queries

Project description

PDB2SQL

PyPI DOI RSD Build_Test 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.

Source Distribution

pdb2sql-0.5.3.tar.gz (398.1 kB view details)

Uploaded Source

Built Distribution

pdb2sql-0.5.3-py3-none-any.whl (414.2 kB view details)

Uploaded Python 3

File details

Details for the file pdb2sql-0.5.3.tar.gz.

File metadata

  • Download URL: pdb2sql-0.5.3.tar.gz
  • Upload date:
  • Size: 398.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for pdb2sql-0.5.3.tar.gz
Algorithm Hash digest
SHA256 51e882cf0326130b4cd7223692350aa027e6be5141c85cad471da5df9d7fa7dd
MD5 4032cebb21b5500f9c9fcb63ad4f5964
BLAKE2b-256 aa3107e1df2f3dab42f6928f2dd80e4c6d310c9edcc3c258161917ab98369e11

See more details on using hashes here.

File details

Details for the file pdb2sql-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: pdb2sql-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 414.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for pdb2sql-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 142b0aa80dc709a13818c0f2d14640342f5678562b56b5b6579c6979323b8a84
MD5 d2d9bb4b02091aa8720b72ad6d70f733
BLAKE2b-256 bdeedde3a62bb6cc57ab8f81c48bd263037cd56ab534b641e76d6f726207698a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page