crabwurcs
A pure-Rust toolkit for glycan notation conversion, chemical-structure interop, and SNFG rendering.
Overview
This is the facade crate for the crabWURCS project, providing a unified API that combines functionality from all specialized sub-crates:
crabwurcs-core- Core WURCS parser/writer + shared ResidueGraph modelcrabwurcs-iupac- IUPAC condensed/extended and GLYCAM converterscrabwurcs-mol- MOL/SDF/SMILES molecular structure handlingcrabwurcs-pdb- PDB/mmCIF glycan extractioncrabwurcs-snfg- SNFG SVG rendering
Features
- Multi-format conversion: Convert between WURCS, IUPAC (condensed/extended), GLYCAM, SMILES, MOL, and SDF formats
- Structure extraction: Extract glycan structures from PDB and GLYCAM coordinate files
- Molecular chemistry: Construct concrete WURCS backbones/MAP graphs and round-trip stereochemical SMILES or V3000 MOL/SDF
- SNFG rendering: Generate publication-quality SNFG (Symbol Nomenclature for Glycans) SVG or PNG graphics
- Pure Rust: No external C/C++ dependencies by default, with optional RDKit backend
Installation
Add this to your Cargo.toml:
[]
= "0.3.1"
For optional RDKit backend support:
[]
= { = "0.3.1", = ["rdkit-backend"] }
Quick Start
use *;
API Documentation
- Full API Documentation - Complete API reference
- Main Project README - Project overview and CLI usage
- Development Status - Implementation details and testing coverage
Crate Structure
This crate re-exports all functionality from the specialized sub-crates:
use *;
// Core types and models
use ;
// Format conversion
use ;
// SNFG rendering
use ;
// PDB extraction
use ;
License
This project is licensed under the MIT License.