#! /usr/bin/python import cgi, pg, re, string from pg import DB buche=pg.DB(dbname='buche_4.8', user='postgres') numeri=['1','2','3','4','5','6','7','8','9','0'] def header(title): print 'Content-Type: text/html\n' print '\n
\n![]() |
' for k in formkeys: #### controlla validita' del codice immesso #### if form[k].value=='submit': pdbcode=string.strip(k) elif k=='pdbcode': link='http://www.rcsb.org/pdb/cgi/explore.cgi?pid=208991029170421&page=0&pdbId='+string.upper(form[k].value) print '
The submitted code is ',form[k].value,'
' pdbcode=form[k].value else: break if len(pdbcode)!=4 or pdbcode[0] not in numeri: print 'Please, check the PDB code
Header: | ',re.sub(';',' |
---|---|
Compound: | ',re.sub(';',' |
Source: | ',re.sub(';',' |
Author: | ',re.sub(';',' |
Title: | ',re.sub(';',' |
Keywords: | ',re.sub(';',' |
Something wrong happened, sorry
X-RAY DIFFRACTION
NMR
Chain | Redundancy | Representative redundancy group member | Submit | ||||
---|---|---|---|---|---|---|---|
',catene[i][0],' | ' catena=buche.query('select chains.groupid1, chains.rid1, chains.oid, chains.exp, chains.type from chains where chains.pdb_id='+"%s"%(pdboid)+' and chains.name=\''+string.strip(catene[i][0])+'\'').getresult() # catene=buche.query('select chains.groupid1, chains.rid1, chains.oid from chains where chains.pdb_id='+"%s"%(pdboid)+' and chains.name=\''+catena+'\'').getresult() if catena[0][1]=='f': print 'Not representative | ' scelta=buche.query('select pdb.name, chains.pdb_id, chains.name, chains.rid1, chains.oid from pdb, chains where chains.rid1=\'t\' and chains.groupid1=\''+catena[0][0]+'\' and pdb.oid=chains.pdb_id and chains.exp!=\'N\'').getresult() if scelta: print '','',scelta[0][0],'',scelta[0][2],' | ' check=buche.query('select pdb.oid, pdb.name, pdb.header, pdb.compnd, pdb.source, pdb.author, pdb.title, pdb.keywds from pdb where pdb.name=\''+scelta[0][0]+'\'').getresult() chain_id=catene[i][1] print '' else: print 'No representative member available | ' else: print ' | Representative | ',pdbcode,'',catene[i][0]+' | ' chain_id=catene[i][1] print '' # if catena[0][4]=='int': # print 'Interesting | ' # chain_id=catene[i][1] # print '
Experimental Technique: | NMR |
The submitted code is not present in the used PDB release
Try a different PDB code
![]() |
' print 'go to the home page ' print '
' footer()