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.2.2.tar.gz (799.4 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.2.2-cp314-cp314-macosx_11_0_arm64.whl (519.2 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

molex-0.2.2-cp312-cp312-win_amd64.whl (373.3 kB view details)

Uploaded CPython 3.12Windows x86-64

molex-0.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (595.6 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for molex-0.2.2.tar.gz
Algorithm Hash digest
SHA256 75bb0a27ffdf5a3668aa61208b42f59e86574325fb071714342867f065e09d93
MD5 4ae49ef150343de91bf6ccfbf8877030
BLAKE2b-256 2833e8bf5dd0548488a4dcd83af82cef36eab4a3cf3314a06b3d71da3706d0cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.2.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e708c30f2c816455b91218d5e840540fdccc34a9e07925b54e8c88410c76f981
MD5 05dd5ed267ec093df02887943a205f9f
BLAKE2b-256 9f8f135978aed41ce0a2073b3c9bfad43da403b1d22caa3d4668ed55620c399e

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for molex-0.2.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 96b6852cd2ba91f17fbe9cf722f84f928e9942235e33e234d8fcb24f42b9462a
MD5 8bd3fd00e284cfbdb11abac4bc0e579a
BLAKE2b-256 6b2dc6a21bb43a4bbe9078ef80ac925a9f863e155258f1fd82cb3780c19c61cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for molex-0.2.2-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.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for molex-0.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b1bfc22ddab0128858aa31d426219f83154dce2b2244a0b1295f1d119d06141
MD5 554439c67beb2f4a44d259da74448732
BLAKE2b-256 165a6da2a560d617a1de0ee03729addc26ac2c4862d5ca70b3ed22afd1976800

See more details on using hashes here.

Provenance

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