pub fn reverse_complement_str(seq: &str) -> StringExpand description
Reverse complements a DNA string, preserving case.
Returns the reverse complement of the input string.
Unlike reverse_complement, this preserves the case of each base.
Non-ASCII characters are passed through unchanged.
ยงExamples
use fgumi_dna::dna::reverse_complement_str;
assert_eq!(reverse_complement_str("ACGT"), "ACGT");
assert_eq!(reverse_complement_str("AAAA"), "TTTT");
assert_eq!(reverse_complement_str("acgt"), "acgt");