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 format (ASSEM02) 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

assembly_bytes = molex.pdb_to_assembly_bytes(open("1ubq.pdb").read())
pdb_string = molex.assembly_bytes_to_pdb(assembly_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.5.1.tar.gz (247.0 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.5.1-cp314-cp314-macosx_11_0_arm64.whl (484.2 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

molex-0.5.1-cp312-cp312-win_amd64.whl (362.7 kB view details)

Uploaded CPython 3.12Windows x86-64

molex-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (528.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for molex-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a5bfd744ad11582ab80f1644c5b4edde28efacd7e15a81f9eab0e71faabb20ef
MD5 bf859901a6313ca68511bc9276d40d2b
BLAKE2b-256 4dfa208364950ed1163036ee6bce0119123002314b19c87316da5b653b8b59fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.5.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03c7b49534d1e5c0902544fc3804a596465cac3aac6f89f488b4d504534a03df
MD5 eabb7d59d425e2e40c2d179f78a04f12
BLAKE2b-256 f0bab93e9fc6b75d2764e6ff13f88b3ac54dd19e406aaafd1aabac0b41e4bdba

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: molex-0.5.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 362.7 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.5.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6aecf47073655fa39f2ce0a8784edba5297ddd603109b71ccaa7753b11677458
MD5 95d551336113a009f88923692b8f64f0
BLAKE2b-256 c73721dfdbe772d0307f70bc21dffcc06c31122625c0de26833746e91a7c232e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1689ec128d595f5aad6d20dc0881759900e1bdc63bcf3171ed0727005af34afa
MD5 39b79c6c9bae7ef98cc3af88547ec696
BLAKE2b-256 26ae06ffa5c3d7d305343ffbab8944e786ddb9b05c9a3e6e0f0d2aa7cbe3e343

See more details on using hashes here.

Provenance

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