Skip to main content

Module id

Module id 

Source
Expand description

Newtype wrappers for the three identifier namespaces used throughout gapseq.

Keeping them distinct at the type level prevents passing a reaction id where a compound id is expected. The underlying storage is String for now; once the model-loading hot paths are profiled we can swap to interned Arc<str> without touching call sites.

Structsยง

CpdId
Compound identifier (e.g. cpd00001).
GeneId
Gene identifier (e.g. fig|83333.1.peg.3, locus tag).
RxnId
Reaction identifier (e.g. rxn00148_c0, EX_cpd00007_e0, bio1).