Biskit :: Dock :: ComplexEvolvingList :: ComplexEvolvingList :: Class ComplexEvolvingList
[hide private]
[frames] | no frames]

Class ComplexEvolvingList

source code


List of ComplexEvolving instances. Used for organising, sorting, and filtering Complexes during refinement.


To Do:

See Also: Dock.ComplexEvolving

Instance Methods [hide private]
  __init__(self, lst=[])
str version(self)
Version of Dock.Complex
  checkType(self, v)
Make sure v is a ComplexEvolving
ComplexList allVersionList(self)
Get all versions of each Complex as a seperate Complex instance.
ComplexList toComplexList(self, version=-1)
Get a ComplexList that contains only a single version of each Complex.
[ Complex ] toList(self, version=None)
Get a simple python list of Complexes.
[any] valuesOf(self, infoKey, version=None, default=None, indices=None, unique=0)
Get all values of a certain info record of all or some Complexes.

Inherited from ComplexList.ComplexList: __add__, __getslice__, __iadd__, __setitem__, __setstate__, append, argmax, argmin, argsort, argsortRandom, checkTypes, extend, filter, filterEqual, filterFunct, filterRange, getIndex, getItem, ligModels, max, min, plot, plotArray, recModels, sortBy, strayModels, take, toDict

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__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, lst=[])
(Constructor)

source code 
Parameters:
  • lst ([ComplexEvolving]) - list of Complexes
Raises:
Overrides: ComplexList.ComplexList.__init__

version(self)

source code 

Version of Dock.Complex
Returns: str
version of class
Overrides: ComplexList.ComplexList.version

checkType(self, v)

source code 

Make sure v is a ComplexEvolving
Parameters:
  • v (any) - any
Raises:
Overrides: ComplexList.ComplexList.checkType

allVersionList(self)

source code 

Get all versions of each Complex as a seperate Complex instance.
Returns: ComplexList
ComplexList of normal Complex instances

toComplexList(self, version=-1)

source code 

Get a ComplexList that contains only a single version of each Complex.
Parameters:
  • version (int) - version in history, -1 == last [-1] (default: -1)
Returns: ComplexList
ComplexList

toList(self, version=None)

source code 

Get a simple python list of Complexes. If version==None, the list contains ComplexEvolving instances with all versions, otherwise the list contains Complex instances representing a single version.
Parameters:
  • version (int) - version in history, -1 == last, None == all (default: None)
Returns: [ Complex ]
python list of Complexes
Overrides: ComplexList.ComplexList.toList

valuesOf(self, infoKey, version=None, default=None, indices=None, unique=0)

source code 

Get all values of a certain info record of all or some Complexes.
Parameters:
  • infoKey (str) - key for info dict
  • version (int) - index in history or None (=current) (default: None)
  • default (any) - default value if infoKey is not found (default: None)
  • indices ([int] OR None) - list of int OR None(=all), indices of Complexes (default: None)
  • unique (1|0) - report each value only once (set union), (default: 0)
Returns: [any]
list of values
Overrides: ComplexList.ComplexList.valuesOf