PEATDB/scripts/titDB_Stats.py
def dofigure5():
    """make fig for paper, cheapskate Jens"""
    required = {'Plastocyanin (Phormidium)':[61,92],
                'Plastocyanin (Anabaena variabilis)':[62,92],
                'Bovine Beta-Lactoglobulin':[64,114]}
    
    for p in DB.getRecs():
        prot = DB[p]['name']
        if prot in required:
            Eh = data=DB[p]['1H NMR']
            En = data=DB[p]['15N NMR']
            for d in Eh.datasets:
                hdata = Eh.getDataset(d)
                num = int(t.getResidueFields(hdata)['res_num'])
                #print d, type(num), required[prot]
                if num in required[prot]:
                    print num
                    ndata = En.getDataset(d)
                    Eh.plotDatasets(d, filename=d+'.png')
    return
make fig for paper, cheapskate Jens
make fig for paper, cheapskate Jens
make fig for paper cheapskate Jens
def dofigure5():
    required = {'Plastocyanin (Phormidium)':[61,92],
                'Plastocyanin (Anabaena variabilis)':[62,92],
                'Bovine Beta-Lactoglobulin':[64,114]}
    for p in DB.getRecs():
        prot = DB[p]['name']
        if prot in required:
            Eh = data=DB[p]['1H NMR']
            En = data=DB[p]['15N NMR']
            for d in Eh.datasets:
                hdata = Eh.getDataset(d)
                num = int(t.getResidueFields(hdata)['res_num'])
                if num in required[prot]:
                    print num
                    ndata = En.getDataset(d)
                    Eh.plotDatasets(d, filename=d+'.png')
    return
def dofigure5 ( ) : required = { 'Plastocyanin (Phormidium)' : [ 61 , 92 ] , 'Plastocyanin (Anabaena variabilis)' : [ 62 , 92 ] , 'Bovine Beta-Lactoglobulin' : [ 64 , 114 ] } for p in DB . getRecs ( ) : prot = DB [ p ] [ 'name' ] if prot in required : Eh = data = DB [ p ] [ '1H NMR' ] En = data = DB [ p ] [ '15N NMR' ] for d in Eh . datasets : hdata = Eh . getDataset ( d ) num = int ( t . getResidueFields ( hdata ) [ 'res_num' ] ) if num in required [ prot ] : print num ndata = En . getDataset ( d ) Eh . plotDatasets ( d , filename = d + '.png' ) return
make fig for paper, cheapskate Jens
make fig for paper cheapskate Jens
"""make fig for paper, cheapskate Jens""" #print d, type(num), required[prot]