pub fn complement(seq: &[u8]) -> Vec<u8> ⓘExpand description
Returns the complement of a DNA sequence.
Each base is complemented in-place without reversing.
§Examples
use scirs2_core::bioinformatics::sequence::complement;
let seq = b"ATGC";
let comp = complement(seq);
assert_eq!(comp, b"TACG");