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.4.tar.gz (239.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.4.4-cp314-cp314-macosx_11_0_arm64.whl (484.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

molex-0.4.4-cp312-cp312-win_amd64.whl (378.1 kB view details)

Uploaded CPython 3.12Windows x86-64

molex-0.4.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (529.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: molex-0.4.4.tar.gz
  • Upload date:
  • Size: 239.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.4.4.tar.gz
Algorithm Hash digest
SHA256 786619e2323802b64d88b91b20f47ce186e16a3e190d4c95806bb6fcc6bf4c80
MD5 6399165f0d287bee55e5b69142f727a1
BLAKE2b-256 b371fd9b4d8f958d0f36904bc37f76205fca7aac7dee3b8b19853a95ea4eda27

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.4.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a8a6eadd901ce18c6e0fa419923ef58e6e8c3346f190b0214f01b1a014e48f9
MD5 6cc94149bcd04acd95f0f6cc8da1c4d6
BLAKE2b-256 cadca6b9e763e14a0efec5dd133128525969e2fc84b3529a279c0df013223f8c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: molex-0.4.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 378.1 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.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 53c7ebabe1a6103d770329f7b96f1619a9ee201627cf6391badded62b0693b02
MD5 58f0d93af1ac42b74dd7fd8d8107b136
BLAKE2b-256 a0459962ce90a292ea9ea41553ed3b4272759431e02496b26bb149422c047666

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.4.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 29c36c92033fb4694dea63ac23a9f6df3f82200adab8d9a5fe70c0aef7577f48
MD5 d77ff0dc051c2de3aa5285ee97638899
BLAKE2b-256 6fa71ac8636f4bf7961715ce4583a93996025c7f1d45c8c49caabe967da7d070

See more details on using hashes here.

Provenance

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