Class describing the left or right side of a junction. More...
#include <Junction.hpp>
Public Member Functions | |
JunctionSideSection () | |
The default constructor constructs an unknown junction side. | |
JunctionSideSection (JunctionStrand, const reference::Location &position, int length, const std::string &repeatClassification, const std::string &genes) | |
Constructor from strand/position/length. | |
void | write (std::ostream &, const reference::CrrFile &) const |
serializes the junction side into a stream | |
int | getDir (size_t side) const |
Returns 1 if the junction side points to increasing reference offsets and -1 otherwise. | |
reference::Location | getBasePos (size_t side) const |
Returns the reference position closest to the breakpoint from the given junction side. | |
Public Attributes | |
JunctionStrand | strand_ |
reference::Location | position_ |
int | length_ |
std::string | repeatClassification_ |
std::string | genes_ |
Class describing the left or right side of a junction.
reference::Location cgatools::junctions::JunctionSideSection::getBasePos | ( | size_t | side | ) | const |
Returns the reference position closest to the breakpoint from the given junction side.
int cgatools::junctions::JunctionSideSection::getDir | ( | size_t | side | ) | const |
Returns 1 if the junction side points to increasing reference offsets and -1 otherwise.