1
2
3
4
5
6
7 from Bio.SwissProt import SProt
8
9
11 """Breaks up a Swiss-Prot/UniProt file into SeqRecord objects
12
13 Every section from the ID line to the terminating // becomes
14 a single SeqRecord with associated annotation and features.
15
16 This parser is for the flat file "swiss" format as used by:
17 * Swiss-Prot aka SwissProt
18 * TrEMBL
19 * UniProtKB aka UniProt Knowledgebase
20
21 It does NOT read their new XML file format.
22 http://www.expasy.org/sprot/
23
24 For consistency with BioPerl and EMBOSS we call this the "swiss"
25 format.
26 """
27 return SProt.Iterator(handle, SProt.SequenceParser())
28