Package Bio :: Module SeqFeature :: Class OneOfPosition
[hide private]
[frames] | no frames]

Class OneOfPosition

source code

      object --+    
               |    
AbstractPosition --+
                   |
                  OneOfPosition

Specify a position where the location can be multiple positions.

This models the GenBank 'one-of(1888,1901)' function, and tries to make this fit within the Biopython Position models. In our case the position of the "one-of" is set as the lowest choice, and the extension is the range to the highest choice.

Instance Methods [hide private]
 
__init__(self, position_list)
Initialize with a set of posssible positions.
source code
 
__repr__(self)
String representation of the OneOfPosition location for debugging.
source code
 
__str__(self)
str(x)
source code
 
_shift(self, offset) source code

Inherited from AbstractPosition: __eq__, __ge__, __gt__, __hash__, __le__, __lt__, __ne__

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, position_list)
(Constructor)

source code 

Initialize with a set of posssible positions.

position_list is a list of AbstractPosition derived objects, specifying possible locations.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

String representation of the OneOfPosition location for debugging.

Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

_shift(self, offset)

source code 
Overrides: AbstractPosition._shift