Skip to contents

Creates the reverse complement of a DNA sequence string, handling standard nucleotide bases (A, T, G, C) and ambiguous bases (N). Used internally by the cDNA pipeline for primer matching on both strands.

Usage

reverse_complement(sequence)

Arguments

sequence

Character string. A DNA sequence containing only the characters A, T, G, C, and N.

Value

Character string. The reverse complement of the input sequence.

See also

detect_orientation_single where reverse complement sequences are used for primer alignment

Examples

if (FALSE) { # \dontrun{

reverse_complement("ATCG")
# Returns "CGAT"

reverse_complement("AAATTT")
# Returns "AAATTT"

} # }