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.0.tar.gz (199.9 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.0-cp314-cp314-macosx_11_0_arm64.whl (407.6 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

molex-0.4.0-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.0.tar.gz.

File metadata

  • Download URL: molex-0.4.0.tar.gz
  • Upload date:
  • Size: 199.9 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.0.tar.gz
Algorithm Hash digest
SHA256 c2fd2bb6ae27eff8888735c46dae1153c9abd0dd2e9dea12eb02268a84ea3a13
MD5 174681f00264221a28bcd210f3033985
BLAKE2b-256 e8ecf1de9314e728a3fe62454928b5f3370bfce152a8902e823037148a6a40ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.4.0.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.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for molex-0.4.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e620e0e50e9f19bd68811c5f92acf8e5a2333cbec7c84263117363e0d49ad80
MD5 7daf3e8c84c0a2ed97b5648e10e6276d
BLAKE2b-256 66dffff6c24b661a9763f1a56e503cc96a5fcc480a5910cc5a42443fde53fa64

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.4.0-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.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: molex-0.4.0-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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 476605d9b706ca090ad53e4520f4c4fab24db625b3484c8e4bc8855154d62019
MD5 9909b5c3a003ebc32c4241ad361b1eb6
BLAKE2b-256 8ae6df55d8f54c67dd86af27fa0a6c11218424f4a4e6a55e73f1afa184bb47a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.4.0-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.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for molex-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7d122656b7ef89c4452a713e8ef0de16a739574b07de31bbbe226d2bc7233fd
MD5 7cdb1f8875260acde5e69b033bbf297b
BLAKE2b-256 1dac16f4acc4b7baf6fac23b3f2f13b181bee0ea13393e6e7d982ccf23d0dea9

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.4.0-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