Skip to main content

Parse, analyze, and transform molecular structure data (PDB, mmCIF, BinaryCIF, MRC)

Project description

molex

Molecular exchange — a Rust library for parsing, analyzing, and serializing molecular structure data.

Features

  • Parse PDB, mmCIF, BinaryCIF, MRC/CCP4 density maps, and DCD trajectories
  • Entity model — proteins, nucleic acids, ligands, ions, waters, and cofactors as typed entities
  • Analyze — DSSP secondary structure, hydrogen bonds, covalent bonds, disulfide bridges
  • Transform — Kabsch alignment, CA extraction, backbone segments
  • Serialize — compact binary formats (COORDS01, ASSEM01) for FFI and IPC
  • Python bindings — PyO3 module with AtomWorks/Biotite interop

Quick start

use molex::adapters::pdb::pdb_file_to_entities;

let entities = pdb_file_to_entities("1ubq.pdb".as_ref())?;
for e in &entities {
    println!("{}: {} atoms", e.label(), e.atom_count());
}

Python

pip install molex
import molex

coords_bytes = molex.pdb_to_coords(open("1ubq.pdb").read())
pdb_string = molex.coords_to_pdb(coords_bytes)

Optional features

Feature Description
python PyO3 bindings for use from Python

Documentation

License

MIT

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

molex-0.4.1.tar.gz (201.1 kB view details)

Uploaded Source

Built Distributions

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

molex-0.4.1-cp314-cp314-macosx_11_0_arm64.whl (407.8 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

molex-0.4.1-cp312-cp312-win_amd64.whl (302.8 kB view details)

Uploaded CPython 3.12Windows x86-64

molex-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (455.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file molex-0.4.1.tar.gz.

File metadata

  • Download URL: molex-0.4.1.tar.gz
  • Upload date:
  • Size: 201.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for molex-0.4.1.tar.gz
Algorithm Hash digest
SHA256 23c50a6bd1608d5951c27ac4344643a58f65cf6b64e8cf1279e7307e926d7da6
MD5 903776ca2b07ef4d13668dad8f9be8f0
BLAKE2b-256 ea4a1e52dd786368a07a8fd9b79cf72c1c1c2dd2aa6ecda656c3339d61436d2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.4.1.tar.gz:

Publisher: release.yml on foldit-org/molex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file molex-0.4.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for molex-0.4.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b60120850cccd3222c7acde547d9d5219c360031467b8a792ecc01c8bd4a0bc
MD5 1d9e5dca8a5ed0ebe6bcf56eb680105b
BLAKE2b-256 dfdeba6c2266d4357e215cf101be6ea51bf9fab5ded8dd3dde23a4de2cabebc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.4.1-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: release.yml on foldit-org/molex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file molex-0.4.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: molex-0.4.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 302.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for molex-0.4.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7455e54f17df4d62e740736f6f9e799929ac21ec6a8871247ca7be0712f81038
MD5 656a129507b8c8b2071789e67fccf026
BLAKE2b-256 2aac252a918225966002292c9ab76acfc0fe3839befca18afea9132d90fa0249

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.4.1-cp312-cp312-win_amd64.whl:

Publisher: release.yml on foldit-org/molex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file molex-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for molex-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6808ca4e0ac9bbe5c8563b3724c8bfa51366417d882718e58c4c0b94590d9346
MD5 e60e2cdf56db0e270a82c03f0d0449a3
BLAKE2b-256 1e023cafa494c85e083da6a94e9ed4c64b6867dd4778ccba967add24eb38bf54

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on foldit-org/molex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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