Skip to main content

encode_base

Function encode_base 

Source
pub fn encode_base(c: u8) -> Option<u8>
Expand description

Encode a DNA base character to its 2-bit representation.

A=0, C=1, G=2, T=3. Returns None for invalid characters.