Ad
Code
Diff
  • reverse_compliment = lambda dna: dna.upper()[::-1].translate(str.maketrans("ACGT", "TGCA"))
    • reverse_compliment = lambda dna: dna[::-1].translate(str.maketrans("ACGTacgt", "TGCATGCA"))
    • reverse_compliment = lambda dna: dna.upper()[::-1].translate(str.maketrans("ACGT", "TGCA"))