eXpress “1.5”
|
The DirectionDetector class keeps track of the observed fragment directions (forward-reverse or reverse-forward) and whether they are paired or single-end. More...
#include <directiondetector.h>
Public Member Functions | |
DirectionDetector () | |
The DirectionDetector constructor sets all counts to 0. | |
void | add_fragment (Fragment *f) |
Adds counts for the alignments of the given Fragment. | |
bool | report_if_improper_direction () |
Throws a warning if a disproportionate number of alignments are in one direction and the proper flag has not been specified. |
The DirectionDetector class keeps track of the observed fragment directions (forward-reverse or reverse-forward) and whether they are paired or single-end.
It can then determine if the numbers in each direction are distributed disproportionately and throw a warning if the proper direction flag has not been specified. Unable to detect when a directional flag has been chosen incorrectly since the incompatible alignments will have been discarded.
Definition at line 29 of file directiondetector.h.
void DirectionDetector::add_fragment | ( | Fragment * | f | ) |
Adds counts for the alignments of the given Fragment.
f | a pointer to the Fragment to count the direction of its alignments. |
Definition at line 20 of file directiondetector.cpp.
bool DirectionDetector::report_if_improper_direction | ( | ) |
Throws a warning if a disproportionate number of alignments are in one direction and the proper flag has not been specified.
Definition at line 44 of file directiondetector.cpp.