Skip to main content

PDB parser using SQL queries

Project description

PDB2SQL

PyPI DOI RSD Travis Coverage Status Codacy Badge Documentation Status

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.3.0.tar.gz (344.1 kB view details)

Uploaded Source

Built Distribution

pdb2sql-0.3.0-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdb2sql-0.3.0.tar.gz
  • Upload date:
  • Size: 344.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for pdb2sql-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6dbb05c57f24b0873bd0dc780f4c4bb3bfc0fcab9646410e0035827755af664e
MD5 b361fe0fdfa756671115e26a9ee68d6b
BLAKE2b-256 a79e3d32dbaf96f70523634166db3ed114388f730b0d28354c45095d124fb06d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pdb2sql-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for pdb2sql-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5461d23024c2d09464759edde527196c662683642017faee16cf96ed9820d33
MD5 aeda6dc038c6cdf22a20980c7c32bf3b
BLAKE2b-256 2cab8712aefa006b318025ddbc3ae9f9853f26bc921192e74c10b7eb2bfc5f0e

See more details on using hashes here.

Provenance

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