No project description provided
Project description
QDX-py
Python bindings to qdx-commons, built with maturin / py03.
NAME
qdx_py - QDX-Common utilities for python
PACKAGE CONTENTS
qdx_py
FUNCTIONS
concat(conformer_1_contents, conformer_2_contents)
Takes two conformer json strings and concatenates them
conformer_to_pdb(conformer_contents)
Returns the pdb string for a qdx conformer json string
conformer_to_sdf(conformer_contents)
drop_amino_acids(conformer_contents, amino_acids_to_drop)
Drops amino acids from a conformer json string
drop_residues(conformer_contents, residues_to_drop)
Drops residues from a conformer json string
formal_charge(conformer_contents, missing_atom_strictness)
Charges standard amino acids given a conformer json string,
fragment(conformer_contents, missing_atom_strictness, backbone_steps, terminal_fragment_sidechain_size=None)
Fragments a conformer, updating the fragment formal charges based on existing atom charges
fragment_by_label(conformer_contents, missing_atom_strictness)
Fragments a conformer by atom labels, updating the fragment formal charges based on existing atom charges
fragment_legacy(conformer_contents, bond_length_tolerance, backbone_steps, terminal_fragment_sidechain_size=None)
Fragments a conformer, using distance based bond inference instead of pattern based bond inference
pdb_to_conformer(pdb_contents, keep_residues=None, skip_residues=None)
Converts a pdb string into an array of qdx conformers as a json string
sdf_to_conformer(sdf_contents)
Usage
import qdx_py
# get json string of conformer
conformer = qdx_py.pdb_to_conformer(open("../qdx-common/tests/data/6mj7.pdb").read())
# get pdb of conformer
pdb = qdx_py.conformer_to_pdb(conformer)
Developing
~ setup venv
maturin develop
python
~ import qdx_py
Publishing
export MATURIN_PYPI_TOKEN=[your token]
maturin publish --manylinux 2_28 --zig -f
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
qdx_py-0.13.0.tar.gz
(13.1 kB
view details)
Built Distribution
File details
Details for the file qdx_py-0.13.0.tar.gz
.
File metadata
- Download URL: qdx_py-0.13.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5646cc0c35b237904d70de4d366b1859c3d31b972e11492ece31617a1ae02249 |
|
MD5 | 882141f023b2781b90c17febef885b84 |
|
BLAKE2b-256 | a4af9a94a1c3c28482d9f5f1c5544d1d89819e2061195f8eb509e360f4b2d9ea |
File details
Details for the file qdx_py-0.13.0-cp311-cp311-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: qdx_py-0.13.0-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 596.5 kB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a4bb49cc63be7862ddd3c3e290d76ec1ad1f9383e696b9dfc5e63004c99c8d5 |
|
MD5 | 9c63d73cdf52c4a2a53b6ce3a1b7833c |
|
BLAKE2b-256 | 745e781763423c46d455a73d2fd0775a917ac2f7ba9a6281d6724d627a3529e7 |