List of Complex objects. Special support is given to access and use
entries in the Complexes' info dictionaries for filtering and sorting.
Some care is taken to avoid the adding of non-Complex objects (but
somehow it is, certainly, still possible).
The different rec- and lig_models of all Complexes are centrally kept
in a ComplexModelRegistry. Before adding a Complex, we check whether its
rec- or lig_model are equivalent (same fileName and unchanged) to one in
the registy. If so, they are replaced to avoid that each Complex points
to its own copy of essentially the same PDBmodel. This does only work
with PDBModels that have been pickled to disc (see PDBModel.saveAs ) and
haven't been changed since. It's a very good idea to do this if you want
to perform any distributed calculation on the ComplexList. Saved
PDBModels cause only little PVM traffic (not much more than the file name
is transmitted). By contrast, unsaved ones will severly slow down the job
distribution.
|
__init__(self,
lst=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
|
str
|
version(self)
Version of class.
|
|
__setstate__(self,
state)
called for unpickling the object.
|
|
__defaults(self)
|
|
checkType(self,
v)
Make sure v is a Complex.
|
|
checkTypes(self,
lst)
Make sure lst is a list of Complexes.
|
|
__setitem__(self,
i,
v)
Set value v of position i.
|
ComplexList
|
__add__(self,
lst)
New ComplexList with the two lists.
|
ComplexList
|
__iadd__(self,
lst)
List appendet to this ComplexList.
|
[PDBModel]
|
ligModels(self)
Get all shared ligand PDBModels.
|
[PDBModel]
|
recModels(self)
Get all shared receptor PDBModels.
|
|
__add_once(self,
item,
lst)
Add eithem to list of it is not already there.
|
dict
|
strayModels(self)
Look for models that are not in model registry.
|
|
extend(list)
Add all items to (the end of) this instance
|
|
append(Complex)
Append Complex to the end of this list.
|
ComplexList
|
__getslice__(self,
i,
j)
Slice list.
|
[int]
|
argsortRandom(self)
Indices for key in random order:
|
[int]
|
argsort(self,
sortKey)
Indices sort order for values of key:
|
ComplexList
|
sortBy(self,
sortKey)
Sort ComplexList by key:
|
[any]
|
valuesOf(self,
infoKey,
default=None,
indices=None,
unique=0)
Get all values of a certain info record of all or some
Complexes.
|
[int]
|
filterRange(self,
infoKey,
vLow,
vHigh)
Get indices of Complexes where vLow <= c.info[ infoKey ] <=
vHigh.
|
[int]
|
filterEqual(self,
infoKey,
lst)
Get indices of Complexes where c.info[ infoKey ] in lst.
|
[int]
|
filterFunct(self,
f)
Get indices of Complexes where f( c ) == 1.
|
ComplexList
|
filter(self,
infoKey,
cond)
Complexes matching condition.
|
int
|
argmax(self,
infoKey)
Get index of complex c with highest c.infos[infokey] value
|
Complex
|
max(self,
infoKey)
Get higest c.infos[infokey] value.
|
int
|
argmin(self,
infoKey)
Get index of complex c with lowest c.infos[infokey] value
|
Complex
|
min(self,
infoKey)
Get lowest c.infos[infokey] value.
|
int
|
getIndex(self,
infoKey,
value)
Get list position of Complex where c.info['infoKey'] == value
|
Complex
|
getItem(self,
infoKey,
value)
Get Complex from ComplexList where c.info['infoKey'] == value
|
ComplexList
|
take(self,
indices)
Take the complexes specified by indices.
|
dict
|
toDict(self,
infoKey)
Convert list into dict indexed by a certain info-record value.
|
[Complex]
|
toList(self)
Convert ComplexList to simple python list of Complexes
|
ComplexList, ComplexList
|
__maskNone(self,
l1,
l2)
Take out positions from l1 and l2 that are None in either of
them.
|
biggles.FramedPlot()
|
plot(self,
xkey,
*ykey,
**arg)
Plot pairs of info values.
|
biggles.FramedArray
|
plotArray(self,
xkey,
*ykey,
**arg)
Plot pairs of info values.:
|
Inherited from list :
__contains__ ,
__delitem__ ,
__delslice__ ,
__eq__ ,
__ge__ ,
__getattribute__ ,
__getitem__ ,
__gt__ ,
__hash__ ,
__imul__ ,
__iter__ ,
__le__ ,
__len__ ,
__lt__ ,
__mul__ ,
__ne__ ,
__new__ ,
__repr__ ,
__reversed__ ,
__rmul__ ,
__setslice__ ,
count ,
index ,
insert ,
pop ,
remove ,
reverse ,
sort
Inherited from object :
__delattr__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|