|
The Coordinates class provides the localization of a sequence region in a Polymer Sequence. More...
Header: | #include <Coordinates.hpp> |
Coordinates(int index_start = -1, int index_end = -1) | |
Coordinates(const Coordinates &other) | |
~Coordinates() | |
int | end() const |
void | incrementEnd() |
QString | indicesAsText() const |
int | length() const |
QString | positionsAsText() const |
void | reset() |
void | setEnd(int value) |
void | setStart(int value) |
int | start() const |
The localization of the sequence region is performed by using indices pointing to the location in the Polymer sequence.
Constructs a Coordinates object with index_start and index_end indices.
The indices define a region in the Sequence. They are sorted so as to ensure that index_start <= index_end.
Constructs a Coordinates object as a copy of other.
After assigning other to this Coordinates, the indices are sorted so as to ensure that index_start <= index_end.
[noexcept]
Coordinates::~Coordinates()Destructs this Coordinates instance.
Returns the member end index.
See also setEnd().
Increments by one unit the member end index.
Returns a string with the region described by this Coordinates instance.
The values are the member indices and the format is
[125--259]
Returns the number of monomer codes in the region described by this Coordinates instance.
return (m_end - m_start + 1)
Returns a string with the region described by this Coordinates instance.
The values are the member indices incremented by one unit (thus being positions and not indices) and the format is
[126--260]
Resets the member indices to 0.
Set the end index to value.
Ensures that m_start is <= m_end.
See also end().
Set the start index to value.
Ensures that m_start is <= m_end.
See also start().
Returns the member start index.
See also setStart().
This variable holds the index of the last monomer in the sequence region described by this Coordinates instance.
This variable holds the index of the first monomer in the sequence region described by this Coordinates instance.