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

Class OneOfPosition

source code

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) source code

Inherited from AbstractPosition: __cmp__

Inherited from AbstractPosition (private): _shift

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: AbstractPosition.__init__

__repr__(self)
(Representation operator)

source code 

String representation of the OneOfPosition location for debugging.

Overrides: AbstractPosition.__repr__