Skip to main content

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


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.10.0.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distributions

qdx_py-0.10.0-cp312-cp312-manylinux_2_34_x86_64.whl (620.1 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

qdx_py-0.10.0-cp311-cp311-manylinux_2_34_x86_64.whl (620.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

qdx_py-0.10.0-cp311-cp311-manylinux_2_28_x86_64.whl (585.0 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

qdx_py-0.10.0-cp310-cp310-manylinux_2_34_x86_64.whl (620.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

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