Package Biskit :: Package Dock :: Module Analyzer :: Class Analyzer
[hide private]
[frames] | no frames]

Class Analyzer

source code

Instance Methods [hide private]
  __init__(self, verbose=1, **options)
[0|1|2] __categorizeHexSurf(self, cutoff=0.1)
Compare complexes of list to native complex to see if their contact surfaces overlapp with the native complex.
  setHexComplexes(self, com_lst, n=20)
add contact matrices of hex-generated (wrong) complexes for comparison
[matrix] random_contacts(self, contMat, n, maskRec=None, maskLig=None)
Create randomized surface contact matrix with same number of contacts and same shape as given contact matrix.
[any] __shuffleList(self, lst)
shuffle order of lst
[[any]] shuffledLists(self, n, lst, mask=None)
shuffle order of a list n times, leaving masked(0) elements untouched
  __plotSequence(self, list, **arg)
add curve to current plot, with x1..xn = 0..n and y1..yn = |list|
  report(self)
override for actual plotting
  initPlot(self)
override for plot creation
  plotAll(self)
Show plot

Method Details [hide private]

__init__(self, verbose=1, **options)
(Constructor)

source code 
Parameters:
  • verbose (1|0) - verbosity level (default: 1)
  • options (any) - needs:
                    rec,lig - file name, receptor, ligand trajectories
                    ref     - file name, pickled reference complex
    
Raises:

__categorizeHexSurf(self, cutoff=0.1)

source code 

Compare complexes of list to native complex to see if their contact surfaces overlapp with the native complex.
Parameters:
  • cutoff (float) - fraction cutoff for defining a overlap (default: 0.1)
Returns: [0|1|2]
list of len(self.hexContacts) overlapping with native contact surface of lig and rec (0 - no overlap, 1 - rec OR lig overlapps, 2- rec AND lig overlapps)

setHexComplexes(self, com_lst, n=20)

source code 

add contact matrices of hex-generated (wrong) complexes for comparison
Parameters:
  • com_lst (ComplexList) - ComplexList with contacts calculated

random_contacts(self, contMat, n, maskRec=None, maskLig=None)

source code 

Create randomized surface contact matrix with same number of contacts and same shape as given contact matrix.
Parameters:
  • contMat (matrix) - template contact matrix
  • n (int) - number of matrices to generate
  • maskRec ([1|0]) - surface masks (or something similar)
  • maskLig ([1|0]) - surface masks (or something similar)
Returns: [matrix]
list of [n] random contact matricies

__shuffleList(self, lst)

source code 

shuffle order of lst
Parameters:
  • lst ([any]) - list to shuffle
Returns: [any]
shuffeled list

shuffledLists(self, n, lst, mask=None)

source code 

shuffle order of a list n times, leaving masked(0) elements untouched
Parameters:
  • n (int) - number of times to shuffle the list
  • lst ([any]) - list to shuffle
  • mask ([1|0]) - mask to be applied to lst
Returns: [[any]]
list of shuffeled lists

__plotSequence(self, list, **arg)

source code 

add curve to current plot, with x1..xn = 0..n and y1..yn = |list|
Parameters:
  • list ([any]) - list to plot

report(self)

source code 

override for actual plotting

initPlot(self)

source code 

override for plot creation

plotAll(self)

source code 

Show plot