Package Bio :: Package SeqIO :: Module SwissIO
[hide private]
[frames] | no frames]

Source Code for Module Bio.SeqIO.SwissIO

 1  # Copyright 2006 by Peter Cock.  All rights reserved. 
 2  # 
 3  # This code is part of the Biopython distribution and governed by its 
 4  # license.  Please see the LICENSE file that should have been included 
 5  # as part of this package. 
 6   
 7  from Bio.SwissProt import SProt 
 8       
 9  #This is a normal function! 
10 -def SwissIterator(handle) :
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