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.

Replicates reverseComplement() from BAMFile.java and the reverse complement computation in Contaminant.java. Input is assumed to be uppercase (or is uppercased before complementing).