PEATDB/plugins/PEATSAplugin.py
def plotMerged(self, matrix, expcol, expdata=None,
                    title='', showtable=True, ax=None, name=None,
                    stats=True):
        """Merge a set of exp vals with predictions and plot"""
        if expdata==None:
            expdata = self.parent.tablemodel.simpleCopy(include=['Mutations'])
        merged = self.mergeMatrix(matrix, expdata)
        x,y,names,muts = merged.getColumns(['Total',expcol,'name','Mutations'],allowempty=False)
        from Correlation import CorrelationAnalyser
        C = CorrelationAnalyser()
        muts = ['mutation: '+i for i in muts]
        labels = zip(names, muts)
        ax,frame,mh = C.plotCorrelation(x,y,labels,title=title,ylabel=expcol,
                                        ax=ax,plotname=name,stats=stats,err=4)
        x=[round(float(i),2) for i in x]
        y=[round(float(i),2) for i in y]       
        if showtable == True:
            table = self.showTable(frame, merged)
            mh.table = table
            
        return ax,mh,x,y
Merge a set of exp vals with predictions and plot
Merge a set of exp vals with predictions and plot
Merge a set of exp vals with predictions and plot
def plotMerged(self, matrix, expcol, expdata=None,
                    title='', showtable=True, ax=None, name=None,
                    stats=True):
        if expdata==None:
            expdata = self.parent.tablemodel.simpleCopy(include=['Mutations'])
        merged = self.mergeMatrix(matrix, expdata)
        x,y,names,muts = merged.getColumns(['Total',expcol,'name','Mutations'],allowempty=False)
        from Correlation import CorrelationAnalyser
        C = CorrelationAnalyser()
        muts = ['mutation: '+i for i in muts]
        labels = zip(names, muts)
        ax,frame,mh = C.plotCorrelation(x,y,labels,title=title,ylabel=expcol,
                                        ax=ax,plotname=name,stats=stats,err=4)
        x=[round(float(i),2) for i in x]
        y=[round(float(i),2) for i in y]       
        if showtable == True:
            table = self.showTable(frame, merged)
            mh.table = table
        return ax,mh,x,y
def plotMerged ( self , matrix , expcol , expdata = None , title = '' , showtable = True , ax = None , name = None , stats = True ) : if expdata == None : expdata = self . parent . tablemodel . simpleCopy ( include = [ 'Mutations' ] ) merged = self . mergeMatrix ( matrix , expdata ) x , y , names , muts = merged . getColumns ( [ 'Total' , expcol , 'name' , 'Mutations' ] , allowempty = False ) from Correlation import CorrelationAnalyser C = CorrelationAnalyser ( ) muts = [ 'mutation: ' + i for i in muts ] labels = zip ( names , muts ) ax , frame , mh = C . plotCorrelation ( x , y , labels , title = title , ylabel = expcol , ax = ax , plotname = name , stats = stats , err = 4 ) x = [ round ( float ( i ) , 2 ) for i in x ] y = [ round ( float ( i ) , 2 ) for i in y ] if showtable == True : table = self . showTable ( frame , merged ) mh . table = table return ax , mh , x , y
Merge a set of exp vals with predictions and plot
Merge a set of exp vals with predictions and plot
"""Merge a set of exp vals with predictions and plot"""
self
matrix
expcol
expdata
title
showtable
ax
name
stats