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
- Guide — architecture, modules, and examples
- API reference — generated rustdoc
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64872db53dbb2a5dd2a9feb4d71be4caf62309d5a61f967256459e785d790a2d
|
|
| MD5 |
1586925919ed3e3f2a5526e5fbfc243f
|
|
| BLAKE2b-256 |
5d4cb1dde468c0679e4d2d6b91040e28597301fa87703f00f47b57d9f5745abf
|
Provenance
The following attestation bundles were made for molex-0.2.1.tar.gz:
Publisher:
release.yml on petridecus/molex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molex-0.2.1.tar.gz -
Subject digest:
64872db53dbb2a5dd2a9feb4d71be4caf62309d5a61f967256459e785d790a2d - Sigstore transparency entry: 1169949209
- Sigstore integration time:
-
Permalink:
petridecus/molex@3e67fae9e81b0b9bd65725585805dff19aad4117 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/petridecus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3e67fae9e81b0b9bd65725585805dff19aad4117 -
Trigger Event:
push
-
Statement type:
File details
Details for the file molex-0.2.1-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: molex-0.2.1-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 519.3 kB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47c6970414eef85357a2009884a4f04c98100529bce7373cfa3f63564325c7f1
|
|
| MD5 |
b98e976524902330b10163ae6c31d6d6
|
|
| BLAKE2b-256 |
dac76321636ca61705486a46a1afdb8ff5dcf49eca50ac244c84ee7c58d9ee63
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molex-0.2.1-cp314-cp314-macosx_11_0_arm64.whl -
Subject digest:
47c6970414eef85357a2009884a4f04c98100529bce7373cfa3f63564325c7f1 - Sigstore transparency entry: 1169949254
- Sigstore integration time:
-
Permalink:
petridecus/molex@3e67fae9e81b0b9bd65725585805dff19aad4117 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/petridecus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3e67fae9e81b0b9bd65725585805dff19aad4117 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
565e60f7870a9e41b623e68dbb10944859a60ae3d9732e3981641ea533f6af23
|
|
| MD5 |
14d2f40ceaada7e0efd727a19f384d04
|
|
| BLAKE2b-256 |
5e8a857091f6bff4a7ee1070b2001e6d411ef8dade8fb12973018f8b06b0d911
|
Provenance
The following attestation bundles were made for molex-0.2.1-cp312-cp312-win_amd64.whl:
Publisher:
release.yml on petridecus/molex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molex-0.2.1-cp312-cp312-win_amd64.whl -
Subject digest:
565e60f7870a9e41b623e68dbb10944859a60ae3d9732e3981641ea533f6af23 - Sigstore transparency entry: 1169949394
- Sigstore integration time:
-
Permalink:
petridecus/molex@3e67fae9e81b0b9bd65725585805dff19aad4117 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/petridecus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3e67fae9e81b0b9bd65725585805dff19aad4117 -
Trigger Event:
push
-
Statement type:
File details
Details for the file molex-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: molex-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 595.7 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77e0141a43d32d2a1d8cfaf90b5910229f0b5c221c4efc282f061a3ff3dee1a4
|
|
| MD5 |
d53326334f2a3994e13c01d88b6fc2e2
|
|
| BLAKE2b-256 |
e1617088e00257149602ffba8750bbb1d3bc213fa01a438c0d193c60e97f8efe
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molex-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
77e0141a43d32d2a1d8cfaf90b5910229f0b5c221c4efc282f061a3ff3dee1a4 - Sigstore transparency entry: 1169949323
- Sigstore integration time:
-
Permalink:
petridecus/molex@3e67fae9e81b0b9bd65725585805dff19aad4117 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/petridecus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3e67fae9e81b0b9bd65725585805dff19aad4117 -
Trigger Event:
push
-
Statement type: