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.3.0.tar.gz (845.8 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.3.0-cp314-cp314-macosx_11_0_arm64.whl (533.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

molex-0.3.0-cp312-cp312-win_amd64.whl (392.5 kB view details)

Uploaded CPython 3.12Windows x86-64

molex-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (612.9 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for molex-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f93cb898a50b9586b19d2fb07f640441c2e6b5e88160288671abbc5e98298b1f
MD5 284b1403b9903f7d1f46cad5b0edd47f
BLAKE2b-256 b07c1b22f33d1526a368bcca2a4edaf5e6e9320a190ddedd98512426adeeba18

See more details on using hashes here.

Provenance

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

Publisher: release.yml on petridecus/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.3.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for molex-0.3.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0aef6a4fdc368a127a784d15e127cb61163341819135108d8db7ff1f2af49cb7
MD5 9c735a568c062c11334c662c961de58d
BLAKE2b-256 3a830987d1122326178430ca888747b1b45374d08dfcd418bff9ba74cbb14fbf

See more details on using hashes here.

Provenance

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

Publisher: release.yml on petridecus/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.3.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: molex-0.3.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 392.5 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.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1d0a03b8a738bc59342a13a78e947d5c09a078f265143c8cb92ddbec8a5dc85e
MD5 dc2b4f23e59ec769229073a7c43929f4
BLAKE2b-256 94c730c71fdf1561c7b846b5d68db646454d23f518809aba8c701646db5a2faa

See more details on using hashes here.

Provenance

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

Publisher: release.yml on petridecus/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.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for molex-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a04e59948dda91f4953dbc34ebc72035417cc70901f89af5f01a0350f71189cf
MD5 748a5ac2bcee0678eeb69a6d96703547
BLAKE2b-256 b0ec137dfe114b8c59b00d878f784fad1ff9938b7bb5adda7f3d017d7a27cfdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on petridecus/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