python
from Bio import SeqIO
from Bio.Seq import Seq
python
sequence = SeqIO.read("sequence.fasta", "fasta")
python
location = sequence.features[0].location
python
protein_sequence = sequence.translate()
python
gene_region = sequence.annotations['gene']
python