Module 11

SeqRecord

Sequences with metadata.

More than just a sequence

A SeqRecord is a Seq object with additional information: an ID, a name, a description. It is the basic unit of a FASTA record.

from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
record = SeqRecord(Seq("ATGC"), id="Tv01", description="Sample")
print(record.id)
print(record.seq)
Your task

Create a SeqRecord

  • Create a SeqRecord with id Tv01 and print it.