A number of online tools exist for taking the reverse complement of a given DNA string.
Like the Reverse Complement program listed below, the revseq program from the EMBOSS package also
performs this function. It can be run online here.
Problem
Recall that in a DNA strings, 'A' and 'T' are complements of each other, as are 'C' and 'G'.
Furthermore, the reverse complement of s is the string sc
formed by reversing the symbols of s and then taking the complement of each symbol
(e.g., the reverse complement of "GTCA" is "TGAC").
The Reverse Complement program from the SMS 2 package can be run online here.
Given: A collection of n (n≤10) DNA strings.
Return: The number of given strings that match their reverse complements.
Sample Dataset
>Rosalind_64
ATAT
>Rosalind_48
GCATA
Sample Output
1
Programming Shortcutclick to expand
BioPython can also be used to take the reverse
complement of a DNA string locally. Specifically, the complement() and reverse_complement() functions are suitable
for this problem. These methods are associated with the Seq object.
The IUPAC.unambiguous_dna() argument specifies that we are using the alphabet {A, C, G, T}
and are not including the additional ambiguity symbols provided by IUPAC notation.