Problem
Recall that in a DNA string , 'A' and 'T' are complements of each other, as are 'C' and 'G'. Furthermore, the reverse complement of is the string formed by reversing the symbols of 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 () DNA strings.
Return: The number of given strings that match their reverse complements.
回想一下DNA字元串中的内容 ,“ A”和“ T”彼此互補,“ C”和“ G”也一樣。此外, 是字元串 通過反轉符号形成 然後取每個符号的補碼(例如,“ GTCA”的反補為“ TGAC”)。
該
Reverse Complement
從程式SMS 2包可以在網上運作在這裡。
鑒于:的集合 ()DNA字元串。
傳回值:比對其反向補碼的給定字元串的數量。
Sample Dataset
>Rosalind_64
ATAT
>Rosalind_48
GCATA
Sample Output
1