Skip to main content

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')

Metadata

Release files for pdb2sql 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdb2sql 0.5.3
File Size Uploaded
pdb2sql-0.5.3.tar.gz 398.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdb2sql 0.5.3
File Interpreter ABI Platform
pdb2sql-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 812.3 kB

Release files / pdb2sql-0.5.3.tar.gz

Download URL pdb2sql-0.5.3.tar.gz
Size 398.1 kB
Tags Source
SHA-256 checksum
How to use checksums
51e882cf0326130b4cd7223692350aa027e6be5141c85cad471da5df9d7fa7dd
BLAKE2b-256 checksum
How to use checksums
aa3107e1df2f3dab42f6928f2dd80e4c6d310c9edcc3c258161917ab98369e11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release files / pdb2sql-0.5.3-py3-none-any.whl

Download URL pdb2sql-0.5.3-py3-none-any.whl
Size 414.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
142b0aa80dc709a13818c0f2d14640342f5678562b56b5b6579c6979323b8a84
BLAKE2b-256 checksum
How to use checksums
bdeedde3a62bb6cc57ab8f81c48bd263037cd56ab534b641e76d6f726207698a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.5.3 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page