[Biopython] ExPASy.get_sprot_raw giving a FASTA record instead of a Swiss-Prot/UniprotKB record?

ANGEL VILLAHOZ-BALETA villahozbale at wisc.edu
Thu Nov 12 19:51:11 UTC 2009


Hi to all,

I am using Biopython 1.5.1 and it seems that I have met with a strange situation...
When using ExPASy.get_sprot_raw, it gives me a FASTA record instead of a Swiss-Prot/UniProtKB record...

Anyone has met the same situation?

You can test the following example: 

from Bio import ExPASy
from Bio import SeqIO
handle = ExPASy.get_sprot_raw("O23729")
seq_record = SeqIO.read(handle, "swiss")
handle.close()
print seq_record.id
print seq_record.name
print seq_record.description
print repr(seq_record.seq)
print "Length %i" % len(seq_record)
print seq_record.annotations["keywords"]

and write me its result...

Thanks very much,

Angel Villahoz-Baleta.



More information about the Biopython mailing list