Skip to main content

Crate chelae_lib

Crate chelae_lib 

Source
Expand description

Crate-level library surface shared by chelae subcommands.

Currently exposes:

  • IUPAC_MASKS — a 256-entry byte LUT mapping ASCII base characters (and the subset of IUPAC ambiguity codes) onto 4-bit masks. Used by the adapter matcher to evaluate IUPAC-aware base compatibility: two bases are compatible iff IUPAC_MASKS[a] & IUPAC_MASKS[b] != 0.
  • adapter_db — built-in 3’ adapter presets for common sequencing kits, selectable via --kit.

Modules§

adapter_db
Built-in 3’ adapter sequence presets for common short-read sequencing kits.

Constants§

IUPAC_MASKS
ASCII-indexed IUPAC ambiguity masks. Bit 0 = A, bit 1 = C, bit 2 = G, bit 3 = T (U is aliased to T). Case-insensitive: both uppercase and lowercase entries are populated. Non-IUPAC bytes map to 0 — callers compute compatibility via MASKS[a] & MASKS[b] != 0, and a 0 mask always yields “incompatible”.