bioin.reverse_complement¶
-
bioin.reverse_complement(pattern)[source]¶ Find the reverse complement of a DNA string. This is how DNA is replicated.
Parameters: pattern (str) – a DNA string pattern. Returns: String, the reverse complement string of the given pattern string. Examples
Return the reversed complementary string of a pattern string.
>>> pattern = 'AAAACCCGGT' >>> reversed_complementary_pattern = reverse_complement(pattern) >>> reversed_complementary_pattern 'ACCGGGTTTT'