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

Class WithinPosition

source code

      object --+    
               |    
AbstractPosition --+
                   |
                  WithinPosition

Specify the position of a boundary within some coordinates.

Arguments: o position - The start position of the boundary o extension - The range to which the boundary can extend.

This allows dealing with a position like ((1.4)..100). This indicates that the start of the sequence is somewhere between 1 and 4. To represent that with this class we would set position as 1 and extension as 3.

Instance Methods [hide private]
 
__init__(self, position, extension=0)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code

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

Inherited from AbstractPosition (private): _flip, _shift

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, extension=0)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)