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

Source Code for Module Bio.dbdefs.interpro

 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  # This returns HTML-formatted data.  Is there a way to get raw text? 
10  interpro_ebi_cgi = CGIDB( 
11      name="interpro-ebi-cgi", 
12      cgi='http://www.ebi.ac.uk/interpro/IEntry', 
13      doc="Retrieve an InterPro entry", 
14      delay=5.0, 
15      key="ac", 
16      failure_cases=[(has_str("No InterPro entry"), "No InterPro entry")] 
17      ) 
18   
19  interpro = DBGroup( 
20          name = "interpro", 
21          behavior = "serial" 
22      ) 
23  interpro.add(interpro_ebi_cgi) 
24