Module 8

Searching motifs

Finding patterns in sequences.

Finding patterns

A motif is a short pattern that appears in a sequence. You can search for motifs using the in operator or find().

Python
seq = "ATGCGTAATGC"
print("ATGC" in seq)
print(seq.find("ATGC"))
True 0
Your task

Search a motif

  • Check if ATG is in ATGCGTAATGC and print the result.