PEATDB/plugins/KineticsAnalysis.py
def loadASTData(self, path, variantnames, date, setname, inhibconcs=None):

        """requires us to get the dilution factor for each conc"""

        filename = 'set%s_%s_ast.xls' % (setname, date)
        filename = os.path.join('AST', filename)
        print filename

        book = xlrd.open_workbook(os.path.join(path, filename))
        sh1 = book.sheet_by_index(0)
        rawdata={}
        times=range(0,310,10)
        mins=[]
        for t in times: mins.append(round(t/60.0,3))
        i=0
        row=3
        offset=9
        #get raw enzyme abs data from sheet and put into ekin
        for c in range(2,14):
            row=3
            name = variantnames[i]
            rawdata[name] = {}
            for s in range(0,8):
                r=row
                yvals=[]; yerrs=[]
                for t in times:
                    #print s, t, r, c, sh1.col_values(c)[r]
                    val=sh1.col_values(c)[r]
                    yvals.append(val)
                    if val == '': print 'val is empty'
                    yerrs.append(val*self.abserr)
                    r = r + offset
                row+=1
                I=inhibconcs[s]
                rawdata[name][I] = EkinConvert.xy2ekin([mins, yvals],
                                    errorlists=(None, yerrs), labels=('t','A'))
            i+=1

        return rawdata
requires us to get the dilution factor for each conc
requires us to get the dilution factor for each conc
requires us to get the dilution factor for each conc
def loadASTData(self, path, variantnames, date, setname, inhibconcs=None):
        filename = 'set%s_%s_ast.xls' % (setname, date)
        filename = os.path.join('AST', filename)
        print filename
        book = xlrd.open_workbook(os.path.join(path, filename))
        sh1 = book.sheet_by_index(0)
        rawdata={}
        times=range(0,310,10)
        mins=[]
        for t in times: mins.append(round(t/60.0,3))
        i=0
        row=3
        offset=9
        for c in range(2,14):
            row=3
            name = variantnames[i]
            rawdata[name] = {}
            for s in range(0,8):
                r=row
                yvals=[]; yerrs=[]
                for t in times:
                    val=sh1.col_values(c)[r]
                    yvals.append(val)
                    if val == '': print 'val is empty'
                    yerrs.append(val*self.abserr)
                    r = r + offset
                row+=1
                I=inhibconcs[s]
                rawdata[name][I] = EkinConvert.xy2ekin([mins, yvals],
                                    errorlists=(None, yerrs), labels=('t','A'))
            i+=1
        return rawdata
def loadASTData ( self , path , variantnames , date , setname , inhibconcs = None ) : filename = 'set%s_%s_ast.xls' % ( setname , date ) filename = os . path . join ( 'AST' , filename ) print filename book = xlrd . open_workbook ( os . path . join ( path , filename ) ) sh1 = book . sheet_by_index ( 0 ) rawdata = { } times = range ( 0 , 310 , 10 ) mins = [ ] for t in times : mins . append ( round ( t / 60.0 , 3 ) ) i = 0 row = 3 offset = 9 for c in range ( 2 , 14 ) : row = 3 name = variantnames [ i ] rawdata [ name ] = { } for s in range ( 0 , 8 ) : r = row yvals = [ ] ; yerrs = [ ] for t in times : val = sh1 . col_values ( c ) [ r ] yvals . append ( val ) if val == '' : print 'val is empty' yerrs . append ( val * self . abserr ) r = r + offset row += 1 I = inhibconcs [ s ] rawdata [ name ] [ I ] = EkinConvert . xy2ekin ( [ mins , yvals ] , errorlists = ( None , yerrs ) , labels = ( 't' , 'A' ) ) i += 1 return rawdata
requires us to get the dilution factor for each conc
requires us to get the dilution factor for each conc
"""requires us to get the dilution factor for each conc""" #get raw enzyme abs data from sheet and put into ekin #print s, t, r, c, sh1.col_values(c)[r]
self
path
variantnames
date
setname
inhibconcs