|
Mindy lookups
>>> from Bio import Mindy, SeqRecord
>>> db = Mindy.open(dbname = "sprot")
>>> location = db.lookup["100K_RAT"]
>>> print location.text[:62]
ID 100K_RAT STANDARD; PRT; 889 AA.
AC Q62671;
>>> record = SeqRecord.io.readString(location.text).next()
>>> print record.id
100K_RAT
>>> print db.lookup(accession = "P01271")
2
>>>
Same interface as web lookup. (almost)
Same interface as BioSQL lookup. (almost)
|
|