Skip to content

Instantly share code, notes, and snippets.

@joowkim
Created November 10, 2016 12:35
Show Gist options
  • Save joowkim/77cb0c2f20b53650cb2ed12c25ceeef3 to your computer and use it in GitHub Desktop.
Save joowkim/77cb0c2f20b53650cb2ed12c25ceeef3 to your computer and use it in GitHub Desktop.
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