Sequence Record

Loading a sequence from a file

>>> from Bio import SeqRecord
>>> for record in SeqRecord.io.read("sprot38.dat"):
...    print record.id
100K_RAT
108_LYCES
10KD_VIGUN
^C
>>> import os
>>> infile = os.popen("zcat sprot40.dat.gz")
>>> record = SeqRecord.io.read(infile).next()
>>> print record
<Bio.SeqRecord.SeqRecord instance at 0x84afa8c>
>>> 

 
.