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

Class AbstractPosition

source code

object --+
         |
        AbstractPosition
Known Subclasses:

Abstract base class representing a position.

Instance Methods [hide private]
 
__init__(self, position, extension)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
String representation of the location for debugging.
source code
 
__hash__(self)
Simple position based hash.
source code
 
__eq__(self, other)
A simple equality for positions.
source code
 
__ne__(self, other)
A simple non-equality for positions.
source code
 
__le__(self, other)
A simple less than or equal for positions.
source code
 
__lt__(self, other)
A simple less than or equal for positions.
source code
 
__ge__(self, other)
A simple less than or equal for positions.
source code
 
__gt__(self, other)
A simple less than or equal for positions.
source code
 
_shift(self, offset) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, position, extension)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

String representation of the location for debugging.

Overrides: object.__repr__

__hash__(self)
(Hashing function)

source code 

Simple position based hash.

Overrides: object.__hash__

__eq__(self, other)
(Equality operator)

source code 

A simple equality for positions.

This is very simple-minded and just compares the position attribute of the features; extensions are not considered at all. This could potentially be expanded to try to take advantage of extensions.

__ne__(self, other)

source code 

A simple non-equality for positions.

This is very simple-minded and just compares the position attribute of the features; extensions are not considered at all. This could potentially be expanded to try to take advantage of extensions.

__le__(self, other)
(Less-than-or-equals operator)

source code 

A simple less than or equal for positions.

This is very simple-minded and just compares the position attribute of the features; extensions are not considered at all. This could potentially be expanded to try to take advantage of extensions.

__lt__(self, other)
(Less-than operator)

source code 

A simple less than or equal for positions.

This is very simple-minded and just compares the position attribute of the features; extensions are not considered at all. This could potentially be expanded to try to take advantage of extensions.

__ge__(self, other)
(Greater-than-or-equals operator)

source code 

A simple less than or equal for positions.

This is very simple-minded and just compares the position attribute of the features; extensions are not considered at all. This could potentially be expanded to try to take advantage of extensions.

__gt__(self, other)
(Greater-than operator)

source code 

A simple less than or equal for positions.

This is very simple-minded and just compares the position attribute of the features; extensions are not considered at all. This could potentially be expanded to try to take advantage of extensions.