Skip to main content

A Biopython based package that constructs and represent all nucleic acids in a PDB structure, with a special focus on base-pair representation.

Project description

https://img.shields.io/pypi/v/pdbnucleicacids.svg Documentation Status Coverage Status Updates

PDBNucleicAcids is a Biopython based package that can parse all nucleic acids in a PDB structure, with a special focus on base-pair representation.

Get Started

The official release is found in the Python Package Index (PyPI)

$ pip install pdbnucleicacids

You can parse single stranded and double stranded nucleic acids.

from Bio.PDB.MMCIFParser import MMCIFParser
from PDBNucleicAcids.NucleicAcid import DSNABuilder

# parse and build structure with Biopython
parser = MMCIFParser()
structure = parser.get_structure(
     structure_id="1A02", filename="1a02-assembly1.cif"
)

# extract all double strand nucleic acids
builder = DSNABuilder()
dsna_list = builder.build_double_strands(structure)

# take the first double strand nucleic acid as an example
dsna = dsna_list[0]

# extract base-pairs data from double stranded nucleic acid
df = dsna.get_dataframe()
df.head()
  i_chain_id  i_residue_index  ... j_residue_index j_chain_id
0          A             4003  ...            5020          B
1          A             4004  ...            5019          B
2          A             4005  ...            5018          B
3          A             4006  ...            5017          B
4          A             4007  ...            5016          B

Check the official documentation for more information.

TODO

  • in search_paired_base maybe add a scoring function instead of simple distance

  • in search_paired_base add a warning if there is more than one candidate or maybe more than one candidate with similar dist or score

  • in BasePair get other information: shear, stretch, buckle, propeller, opening

  • explore the is_nucleic(non_standard) and maybe check if it needs updating

  • Proper tests (WIP)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

pdbnucleicacids-0.3.3.tar.gz (110.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdbnucleicacids-0.3.3-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file pdbnucleicacids-0.3.3.tar.gz.

File metadata

  • Download URL: pdbnucleicacids-0.3.3.tar.gz
  • Upload date:
  • Size: 110.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pdbnucleicacids-0.3.3.tar.gz
Algorithm Hash digest
SHA256 7dc404b9446c15194935a0a3eac1d1d37653e75e7842781f8124c1ebec625a7a
MD5 1de1acb29e4ebe49d9f3c21a0da05124
BLAKE2b-256 434b4ee2acc0d32e8eae717013714a5785f9eb3963c0ea8a8c2c4fde9d25e71e

See more details on using hashes here.

File details

Details for the file pdbnucleicacids-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pdbnucleicacids-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b597bd28661263411adf62b36548fcb3ddfcb3921acfd0fd1b288b9a0cc5effd
MD5 9edb5c6d1f7635715eb1b07bfb9815dd
BLAKE2b-256 f78e151aa2accc6e894807383ea94b986073f1dcbf75fa514c43522fae913b46

See more details on using hashes here.

Supported by

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