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.2.tar.gz (248.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.2-cp314-cp314-macosx_11_0_arm64.whl (461.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

molex-0.5.2-cp312-cp312-win_amd64.whl (359.2 kB view details)

Uploaded CPython 3.12Windows x86-64

molex-0.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (521.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: molex-0.5.2.tar.gz
  • Upload date:
  • Size: 248.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.2.tar.gz
Algorithm Hash digest
SHA256 a64ca2482a05a391f90e3ac7874e081b0199d6fe79c15dd20206a971f73c24f5
MD5 f212ef41b5dcfcf4d2edbad9855762dd
BLAKE2b-256 65bac8846a79cc974a3b0c746257a3adb5f623935cc4153a790714951113ca60

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.5.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2183622a32e5111cd2acd483d4e3051617f36256f42906a52a7a763065a84e5d
MD5 17e5e190f08550f4650f34109f381e19
BLAKE2b-256 52fb8fedd994d7959584b27504d05456d394be31457449d54cd437a3f455e6bc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: molex-0.5.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 359.2 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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 44609e74d2fe6f925160efd002a086c7449132356d09204cef75f54a5d53e6cd
MD5 7c6e90eeaed90608b7b359f59ef04648
BLAKE2b-256 1a7202abcd43af5dd9016b58510d03cfadd0416e09e66d3c09f75e8340fe6eaa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for molex-0.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a6a3bbbd81379e4887bf3a6c9d962615d3e24da7d60d5fa46def3ed817eab68
MD5 4c6d28e60311ffe118a597a381e2139a
BLAKE2b-256 95dcb081f72dc027b4002e9620bd2471678d38e9cb62a4f7940e147b2386ca5e

See more details on using hashes here.

Provenance

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