Skip to main content

reverse_complement

Function reverse_complement 

Source
pub fn reverse_complement(seq: &[u8]) -> Vec<u8> ā“˜
Expand description

Reverse-complement a DNA sequence (mirrors io.c::sreverse).

C also flips T↔U when the input had more U than T (treats it as RNA), but the adjustdirection caller has already gappicked and case-preserved its input via mafft-io, and we keep the original alphabet to stay byte-identical with C’s setdirection output.