Module 11

Seq objects

Creating and inspecting sequences.

Using Seq

You create a Seq object by passing a string to Seq(). You can use it like a string, but it also has biological methods.

from Bio.Seq import Seq
seq = Seq("ATGCGTA")
print(len(seq))
print(seq[0:3])
Your task

Seq operations

  • Print the length and first 3 characters of a Seq.