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.3.tar.gz (239.5 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.3-cp314-cp314-macosx_11_0_arm64.whl (484.8 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

molex-0.4.3-cp312-cp312-win_amd64.whl (378.0 kB view details)

Uploaded CPython 3.12Windows x86-64

molex-0.4.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (529.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: molex-0.4.3.tar.gz
  • Upload date:
  • Size: 239.5 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.3.tar.gz
Algorithm Hash digest
SHA256 86717d9553bae828c5300e7df37e6864256506a26f309efcdb8e58eee6a87a8b
MD5 6c8b09774c7e0b6f70d7dcb45e65f04c
BLAKE2b-256 ef0db267186a3ff143369108e8b371e55f3628270b8b8d74ccebef8680f0b978

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.4.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a55fab08b59d0380defd3288589da7a70f1128c66342be223ed2f18b1e6f2f0
MD5 d2efc123468dabafbdb9e371cf8e55af
BLAKE2b-256 f0a7690cfa8849c456b4abb797292611938cbb3b9ff14a08ab7e3ed06536026c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: molex-0.4.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 378.0 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.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 02cfe1fa0d209a62ae5bfb33f37b69835b278c38a9b2141eeb35dc0a17896a30
MD5 d4aea63d1284511f5978f3426df15a2a
BLAKE2b-256 f5ec230f417138d465422e14f9c07c1168b2a215e5146046930f45e278a9a8a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.4.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5bc6af7d1433bd604825f77962b3b5117efb46f706c167a081386bc5a3524db9
MD5 5ce3e56cf515d107b7f4da6dd51f8b01
BLAKE2b-256 edb73467d5220344e3598811d0ce9b5ae41a5543ec884cd75baa656b9a344731

See more details on using hashes here.

Provenance

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