#molecule #chemistry #pdb #xyz #mol

chelate

Parser for a bunch of molecule file formats

2 unstable releases

Uses new Rust 2024

new 0.2.0 Apr 15, 2025
0.1.0 Apr 14, 2025

#168 in Science

Download history 50/week @ 2025-04-08

52 downloads per month

MIT/Apache

5MB
588 lines

Chelate

Chelate is a simple parser for a bunch of molecular file format.

Supported formats:

  • PDB
  • MOL
  • MOL2 (TRIPOS)
  • CIF (CCDC, mmCIF)
  • XYZ

Example

use chelate;

let (atoms, bonds) = chelate::from_file("data/147288.cif").unwrap();

assert_eq!(atoms.len(), 206);
assert_eq!(bonds.len(), 230);

Dependencies