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
PDBNucleicAcids is a Biopython based package that can parse all nucleic acids in a PDB structure, with a special focus on base-pair representation.
Free software: MIT license
Documentation: https://pdbnucleicacids.readthedocs.io.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdbnucleicacids-0.3.0.tar.gz.
File metadata
- Download URL: pdbnucleicacids-0.3.0.tar.gz
- Upload date:
- Size: 35.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1238d682a7aa626e500ba220032dd0565af4f425ef01c98e5722978e7239790
|
|
| MD5 |
e4adbaf2f7a09fc3fce6fec3320194a9
|
|
| BLAKE2b-256 |
c6de9b89977dc7bf01457cd0084aa2a55000fa72fdf7d52c48ba9eb7edc015b3
|
File details
Details for the file pdbnucleicacids-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pdbnucleicacids-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddd43d97a4f393230e52703ae2ef34a1f7df1badbe79fb60df2ab47cd8c49bd6
|
|
| MD5 |
4e79fcc786d461a93cfd9d0cc869a2be
|
|
| BLAKE2b-256 |
d49b9aa00c80dc9a3b207cc33dc6bb2d1470cb7ba65751b80027751352a202c6
|