1
2
3
4
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