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