biopython v1.71.0 Bio.SeqFeature.ExactPosition
Specify the specific position of a boundary.
Arguments:
- position - The position of the boundary.
- extension - An optional argument which must be zero since we don’t have an extension. The argument is provided so that the same number of arguments can be passed to all position types.
In this case, there is no fuzziness associated with the position.
>>> p = ExactPosition(5)
>>> p
ExactPosition(5)
>>> print(p)
5
>>> isinstance(p, AbstractPosition)
True
>>> isinstance(p, int)
True
Integer comparisons and operations should work as expected:
>>> p == 5
True
>>> p < 6
True
>>> p <= 5
True
>>> p + 10
15
Link to this section Summary
Functions
Create an ExactPosition object
Represent the ExactPosition object as a string for debugging
Return a copy of the location after the parent is reversed (PRIVATE)
Return a copy of the position object with its location shifted (PRIVATE)
Not present in this object, return zero (OBSOLETE)
Legacy attribute to get position as integer (OBSOLETE)
Link to this section Functions
Create an ExactPosition object.
Represent the ExactPosition object as a string for debugging.
Return a copy of the location after the parent is reversed (PRIVATE).
Return a copy of the position object with its location shifted (PRIVATE).
Not present in this object, return zero (OBSOLETE).
Legacy attribute to get position as integer (OBSOLETE).