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.14.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distributions

qdx_py-0.14.0-cp312-cp312-manylinux_2_28_x86_64.whl (667.5 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.28+ x86-64

qdx_py-0.14.0-cp311-cp311-manylinux_2_28_x86_64.whl (668.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

qdx_py-0.14.0-cp310-cp310-manylinux_2_28_x86_64.whl (668.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

qdx_py-0.14.0-cp39-cp39-manylinux_2_28_x86_64.whl (668.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

File details

Details for the file qdx_py-0.14.0.tar.gz.

File metadata

  • Download URL: qdx_py-0.14.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.5.1

File hashes

Hashes for qdx_py-0.14.0.tar.gz
Algorithm Hash digest
SHA256 6b5cd68f54a2a12f69cdc699f0c2211ae0b92073236664c959021f19b18e8f0b
MD5 a3055fcc64557de9713efe1d08e63bbb
BLAKE2b-256 4ed78cbbd30533f4f914a552c7e296aef3a66a856e3600c29e59d28e88add795

See more details on using hashes here.

File details

Details for the file qdx_py-0.14.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qdx_py-0.14.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 36682048ec4cb78669a47b62d5a7435eeba43a08e273efb53d75e8bcf2483162
MD5 387ed6f46461944495281db447524091
BLAKE2b-256 f927fc0582256ac062b3a9da083823e1428a0e67a18cc0fa06ec0c72774eedea

See more details on using hashes here.

File details

Details for the file qdx_py-0.14.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qdx_py-0.14.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ce5da788c7364fbb0b4c90324a7b370f468de9641e7b462b3afe5d1c8584722e
MD5 3f70e24f0585f17089c8941a3656daf0
BLAKE2b-256 0c6a958fc72e138739db29c936ad9b8ff33f3fefcf08fe2b1d7bd520871c1b1a

See more details on using hashes here.

File details

Details for the file qdx_py-0.14.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qdx_py-0.14.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1f902e19097b58168367084438e942372fd2693f11e879144b0ca2890a52df84
MD5 462f6347524cc3a37c07523ed3fb46e3
BLAKE2b-256 4143ed6d6b0872852f2e515514d418b43a7d96444044b1212a23208c3662d6ab

See more details on using hashes here.

File details

Details for the file qdx_py-0.14.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qdx_py-0.14.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c17e9e414cca245e13f1b926a83900f87568f165736a16105465cb7d19c01c75
MD5 599c05d55f7d84e4d7e7a3a2b680d680
BLAKE2b-256 be78864c30851033cc0c2c25ea7ecc9ba71db79440ee859db4cce0a1d27b7d0d

See more details on using hashes here.

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