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

Uploaded Source

Built Distribution

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

qdx_py-0.15.0-cp312-cp312-manylinux_2_28_x86_64.whl (690.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

File details

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

File metadata

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

File hashes

Hashes for qdx_py-0.15.0.tar.gz
Algorithm Hash digest
SHA256 83f036e9baef2d208fc99fa817d06bb211f70a78081d92cc09688bec796af0be
MD5 e3241a87e0c2df55fb42f0aefa1c4174
BLAKE2b-256 6266df36ed774b1964f81095d95c00d418671f84b5d06cd9e3ff2c86fad96976

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qdx_py-0.15.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bdae98f4fe8dab07f5e68afd9139688e0f7016e027cf561a3bdc23897fb3e471
MD5 461efc0b4e67d83f44c2bf91c0440ee3
BLAKE2b-256 345e74c9a217a5d8083ceea14cbdbca3fc23b01e29c16af7a32992b0ef7c2a86

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