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.1.tar.gz (794.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.2.1-cp314-cp314-macosx_11_0_arm64.whl (519.3 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

molex-0.2.1-cp312-cp312-win_amd64.whl (415.5 kB view details)

Uploaded CPython 3.12Windows x86-64

molex-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (595.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: molex-0.2.1.tar.gz
  • Upload date:
  • Size: 794.5 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.1.tar.gz
Algorithm Hash digest
SHA256 64872db53dbb2a5dd2a9feb4d71be4caf62309d5a61f967256459e785d790a2d
MD5 1586925919ed3e3f2a5526e5fbfc243f
BLAKE2b-256 5d4cb1dde468c0679e4d2d6b91040e28597301fa87703f00f47b57d9f5745abf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.2.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47c6970414eef85357a2009884a4f04c98100529bce7373cfa3f63564325c7f1
MD5 b98e976524902330b10163ae6c31d6d6
BLAKE2b-256 dac76321636ca61705486a46a1afdb8ff5dcf49eca50ac244c84ee7c58d9ee63

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: molex-0.2.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 415.5 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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 565e60f7870a9e41b623e68dbb10944859a60ae3d9732e3981641ea533f6af23
MD5 14d2f40ceaada7e0efd727a19f384d04
BLAKE2b-256 5e8a857091f6bff4a7ee1070b2001e6d411ef8dade8fb12973018f8b06b0d911

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77e0141a43d32d2a1d8cfaf90b5910229f0b5c221c4efc282f061a3ff3dee1a4
MD5 d53326334f2a3994e13c01d88b6fc2e2
BLAKE2b-256 e1617088e00257149602ffba8750bbb1d3bc213fa01a438c0d193c60e97f8efe

See more details on using hashes here.

Provenance

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