Created
November 10, 2016 12:35
-
-
Save joowkim/77cb0c2f20b53650cb2ed12c25ceeef3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def reverse_complement(dna_seq): | |
return dna_seq[::-1].translate(str.maketrans('ACGT', 'TGCA')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment