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.0.tar.gz (246.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.5.0-cp314-cp314-macosx_11_0_arm64.whl (484.6 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

molex-0.5.0-cp312-cp312-win_amd64.whl (375.3 kB view details)

Uploaded CPython 3.12Windows x86-64

molex-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (528.6 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: molex-0.5.0.tar.gz
  • Upload date:
  • Size: 246.5 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.0.tar.gz
Algorithm Hash digest
SHA256 5050bed177eeaca7dfb31c47b13f922ac10c368f2f7db5fb0e07775c63eecdfd
MD5 c39029e37922ac47814d10b178eed1f6
BLAKE2b-256 cc8d5d8ae1a256c4536878b41a5bc18f73c4b425428d94fa3dd6126ff8d1d082

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.5.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ab642b05fd7173db1dc4fca6deb9e80f45ebf6e3169a92ec09ac420c31d46bf
MD5 cc60be4045b012237c549d93f4cdd339
BLAKE2b-256 9f6648e3b0a34f7d965730d17939e20e61a0eb3127f28a273036a26fc37ba1d8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: molex-0.5.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 375.3 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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 262301eae027a3ffede5e0e83457a6020d7eb6f8f261805fa75c4be4b4b08a3c
MD5 430c37b8e838530b3041a1601319c688
BLAKE2b-256 c8bfb6f285357e6f8ab14556ebe0e9dcb1bf2f14c69f5314d98b350df450ad26

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 18e14589fb30df376aa4043b4b36bb6812080822145597eaaff3e1147ad26ad6
MD5 1de4bf3921fbb3d2310ee50f84b24648
BLAKE2b-256 4f8c627ee4f2565cae9f0f38c2624be7214c594f6de3b9dc01c6529eaf28d734

See more details on using hashes here.

Provenance

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