Package Bio :: Package SearchIO :: Package _model :: Module _base :: Class _BaseSearchObject
[hide private]
[frames] | no frames]

Class _BaseSearchObject

source code

object --+
         |
        _BaseSearchObject
Known Subclasses:

Abstract class for SearchIO objects.
Instance Methods [hide private]
 
_transfer_attrs(self, obj)
Transfer instance attributes to the given object.
source code

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

Class Variables [hide private]
  _NON_STICKY_ATTRS = ()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_transfer_attrs(self, obj)

source code 

Transfer instance attributes to the given object.

This method is used to transfer attributes set externally (for example using setattr) to a new object created from this one (for example from slicing).

The reason this method is necessary is because different parsers will set different attributes for each QueryResult, Hit, HSP, or HSPFragment objects, depending on the attributes they found in the search output file. Ideally, we want these attributes to 'stick' with any new instance object created from the original one.