The script is developed in python.It sets unique identifier for every database.It can be reused to set unique ids (alphanumeric values) to any set of data.
def generate_grpid(dbname):
dict = {'pdb':0,
'vast':1,
'taxonomy':2,
'genbank':3,
'dbSNP':4,
'enzyme':5,
'uniprot':6,
'go':7,
'interpro':8,
'rebase':9,
'prosite':10
'pdb-hetero':11
}
x = dict[dbname]
# 'x' is the unique id returned.
return x


