Module 11

reverse_complement()

The most common operation, simplified.

One method, two steps

Biopython combines reverse and complement into a single method.

from Bio.Seq import Seq
seq = Seq("ATGC")
print(seq.reverse_complement())
Your task

Reverse complement

  • Compute the reverse complement of ATGC.