Package Bio :: Package dbdefs :: Module swissprot
[hide private]
[frames] | no frames]

Source Code for Module Bio.dbdefs.swissprot

 1  # Copyright 2002 by Jeffrey Chang.  All rights reserved. 
 2  # This code is part of the Biopython distribution and governed by its 
 3  # license.  Please see the LICENSE file that should have been included 
 4  # as part of this package. 
 5   
 6  from Bio.config.DBRegistry import CGIDB, DBGroup 
 7  from _support import * 
 8   
 9  swissprot_expasy_cgi = CGIDB( 
10      name="swissprot-expasy-cgi", 
11      doc="Retrieve a swiss-prot entry by ID from ExPASy.", 
12      cgi="http://www.expasy.ch/cgi-bin/get-sprot-raw.pl", 
13      delay=5.0, 
14      params=[], 
15      key="", 
16      failure_cases=[(blank_expr, "no results")] 
17      ) 
18   
19  swissprot_usmirror_cgi = CGIDB( 
20      name="swissprot-usmirror-cgi", 
21      doc="Retrieve a swiss-prot entry by ID from the US mirror.", 
22      cgi="http://us.expasy.org/cgi-bin/get-sprot-raw.pl", 
23      delay=5.0, 
24      params=[], 
25      key="", 
26      failure_cases=[(blank_expr, "no results")] 
27      ) 
28   
29  swissprot = DBGroup( 
30      name="swissprot", 
31      behavior="serial", 
32      doc="Retrieve a swiss-prot entry by ID.  Will try different servers until one works.", 
33      ) 
34  swissprot.add(swissprot_expasy_cgi) 
35  swissprot.add(swissprot_usmirror_cgi) 
36