Package csb :: Package bio :: Package fragments :: Module isites :: Class Hitlist
[frames] | no frames]

Class Hitlist

source code

object --+
         |
        Hitlist

I-Site instance hitlist.

Instance Methods
 
__getitem__(self, i) source code
 
__init__(self, query, hits)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__iter__(self) source code
ProfileMatch
best_hit(self)
Returns: the best hit in the list in terms of profile score
source code
list of ProfileMatch
top(self, n)
Returns: top n hits in terms of profile score
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, query, hits)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
Overrides: object.__init__
(inherited documentation)

best_hit(self)

source code 
Returns: ProfileMatch
the best hit in the list in terms of profile score

top(self, n)

source code 
Parameters:
  • n (int) - number of top hits
Returns: list of ProfileMatch
top n hits in terms of profile score