001
002
003 import dbd, sys
004
005 cellhead()
006
007 params = dbd.parse_params()
008
009 if session.get("domain"):
010 domain = session["domain"]
011 elif params.has_key("domain"):
012 domain = params["domain"]
013 else:
014 print "Error"
015 cellbody()
016 dbd.print_error_cell("Please specify a domain family")
017 sys.exit()
018
019 if domain == "all":
020 print "Families"
021 cellbody()
022 print """ <blockquote>"""
023 print """<p> The Hidden Markov Models (HMMs) are sorted alphabetically by family name. <br> """
024 print """ Please note that for the SUPERFAMILY database there can be several HMMs for the same superfamily. <br>"""
025 print """ The transcription factor (TF) predictions View links to all the matches of the HMM across all the genomes in the DBD database. <br>"""
026 print """ The taxonomic distribution links to external data on the distribution of DBD families across the tree of life.</p>"""
027 dbd.print_domain_table(globals.HomeURLBase, dbd.IMAGE_GEN_DIR, dbd.get_model_table_data, "DBD", domain)
028 else:
029 print "Domain family search: %s" %(domain)
030 cellbody()
031 dbd.print_domain_table(globals.HomeURLBase, dbd.IMAGE_GEN_DIR, dbd.model_by_search_domain, "DBD", domain)
032
033 cellend()
034
035
|
Traceback (most recent call last):
File "/net/isilonP/public/rw/research/teichmann/apache/live/DBD/web.py", line 148, in gen_cell
exec _code in _globals_d, _locals_d
File "<string>", line 27, in <module>
File "/net/isilonP/public/rw/research/teichmann/apache/live/DBD/dbd.py", line 592, in print_domain_table
for row in sql_function(search_cat, search_term):
File "/net/isilonP/public/rw/research/teichmann/apache/live/DBD/dbd.py", line 415, in get_model_table_data
c = get_db_cursor()
File "/net/isilonP/public/rw/research/teichmann/apache/live/DBD/dbd.py", line 68, in get_db_cursor
db = MySQLdb.connect(host="mysql-teichmann-web.ebi.ac.uk", port=4412, user="admin", passwd="z2Kd6OvN", db="DBD2")
File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2005, "Unknown MySQL server host 'mysql-teichmann-web.ebi.ac.uk' (1)")
|