Class to handle gaps statistics. More...
#include <Gaps.h>
Public Member Functions | |
Gaps (Alignment *pAlignment, Gaps *pGaps) | |
Gaps (Alignment *parent) | |
~Gaps () | |
bool | applyWindow (int) |
int * | getGapsWindow () |
double | calcCutPoint (float, float) |
int | calcCutPointMixSlope () |
int | calcCutPoint2ndSlope () |
void | printGapsColumns () |
void | printGapsAcl () |
bool | isDefinedWindow () |
void | CalculateVectors () |
Public Attributes | |
Alignment * | alig |
int | maxGaps = -1 |
int | halfWindow = -1 |
int * | gapsInColumn = nullptr |
int * | numColumnsWithGaps = nullptr |
int * | gapsWindow = nullptr |
int * | refCounter |
Definition at line 58 of file Gaps.cpp.
References alig, gapsInColumn, gapsWindow, maxGaps, numColumnsWithGaps, and refCounter.
Referenced by statistics::Manager::Manager().
|
explicit |
Definition at line 38 of file Gaps.cpp.
References alig, gapsInColumn, halfWindow, utils::initlVect(), maxGaps, numColumnsWithGaps, Alignment::originalNumberOfResidues, Alignment::originalNumberOfSequences, and refCounter.
Referenced by statistics::Manager::calculateGapStats().
statistics::Gaps::~Gaps | ( | ) |
Definition at line 79 of file Gaps.cpp.
References gapsInColumn, gapsWindow, numColumnsWithGaps, and refCounter.
bool statistics::Gaps::applyWindow | ( | int | halfW | ) |
Definition at line 93 of file Gaps.cpp.
References alig, debug, gapsInColumn, gapsWindow, GapWindowTooBig, halfWindow, utils::initlVect(), maxGaps, numColumnsWithGaps, Alignment::originalNumberOfResidues, Alignment::originalNumberOfSequences, reporting::reportManager::report(), and utils::roundInt().
Referenced by statistics::Manager::calculateGapStats(), and getGapsWindow().
double statistics::Gaps::calcCutPoint | ( | float | minInputAlignment, |
float | gapThreshold | ||
) |
Definition at line 181 of file Gaps.cpp.
References alig, utils::max(), Alignment::numberOfSequences, numColumnsWithGaps, Alignment::originalNumberOfResidues, Alignment::originalNumberOfSequences, and utils::roundInt().
Referenced by Cleaner::clean(), and Cleaner::cleanGaps().
int statistics::Gaps::calcCutPoint2ndSlope | ( | ) |
Definition at line 316 of file Gaps.cpp.
References alig, utils::initlVect(), maxGaps, Alignment::numberOfSequences, numColumnsWithGaps, and Alignment::originalNumberOfResidues.
Referenced by Cleaner::clean2ndSlope(), and Cleaner::cleanCombMethods().
int statistics::Gaps::calcCutPointMixSlope | ( | ) |
Definition at line 226 of file Gaps.cpp.
References alig, utils::initlVect(), maxGaps, numColumnsWithGaps, Alignment::originalNumberOfResidues, and Alignment::originalNumberOfSequences.
void statistics::Gaps::CalculateVectors | ( | ) |
Definition at line 593 of file Gaps.cpp.
References alig, gapsInColumn, maxGaps, numColumnsWithGaps, Alignment::originalNumberOfResidues, Alignment::originalNumberOfSequences, Alignment::saveSequences, and Alignment::sequences.
Referenced by statistics::Manager::calculateGapStats().
int * statistics::Gaps::getGapsWindow | ( | ) |
Definition at line 163 of file Gaps.cpp.
References applyWindow(), gapsInColumn, gapsWindow, halfWindow, and isDefinedWindow().
Referenced by Alignment::alignmentSummaryHTML(), Alignment::alignmentSummarySVG(), statistics::Similarity::calculateVectors(), Cleaner::clean(), Cleaner::clean2ndSlope(), Cleaner::cleanCombMethods(), Cleaner::cleanGaps(), Cleaner::cleanNoAllGaps(), Cleaner::removeOnlyTerminal(), and Alignment::statSVG().
bool statistics::Gaps::isDefinedWindow | ( | ) |
Definition at line 155 of file Gaps.cpp.
References halfWindow.
Referenced by getGapsWindow().
void statistics::Gaps::printGapsAcl | ( | ) |
Definition at line 464 of file Gaps.cpp.
References alig, Alignment::filename, maxGaps, numColumnsWithGaps, Alignment::originalNumberOfResidues, and Alignment::originalNumberOfSequences.
Referenced by statistics::Manager::printStatisticsGapsTotal().
void statistics::Gaps::printGapsColumns | ( | ) |
Definition at line 387 of file Gaps.cpp.
References alig, utils::copyVect(), Alignment::filename, gapsInColumn, gapsWindow, halfWindow, Alignment::originalNumberOfResidues, and Alignment::originalNumberOfSequences.
Referenced by statistics::Manager::printStatisticsGapsColumns().
Alignment* statistics::Gaps::alig |
Definition at line 47 of file Gaps.h.
Referenced by applyWindow(), calcCutPoint(), calcCutPoint2ndSlope(), calcCutPointMixSlope(), CalculateVectors(), Gaps(), printGapsAcl(), and printGapsColumns().
int* statistics::Gaps::gapsInColumn = nullptr |
Definition at line 52 of file Gaps.h.
Referenced by applyWindow(), CalculateVectors(), Gaps(), getGapsWindow(), printGapsColumns(), and ~Gaps().
int* statistics::Gaps::gapsWindow = nullptr |
Definition at line 54 of file Gaps.h.
Referenced by applyWindow(), Gaps(), getGapsWindow(), printGapsColumns(), and ~Gaps().
int statistics::Gaps::halfWindow = -1 |
Definition at line 50 of file Gaps.h.
Referenced by applyWindow(), Gaps(), getGapsWindow(), isDefinedWindow(), and printGapsColumns().
int statistics::Gaps::maxGaps = -1 |
Definition at line 49 of file Gaps.h.
Referenced by applyWindow(), calcCutPoint2ndSlope(), calcCutPointMixSlope(), CalculateVectors(), Gaps(), and printGapsAcl().
int* statistics::Gaps::numColumnsWithGaps = nullptr |
Definition at line 53 of file Gaps.h.
Referenced by applyWindow(), calcCutPoint(), calcCutPoint2ndSlope(), calcCutPointMixSlope(), CalculateVectors(), Gaps(), printGapsAcl(), and ~Gaps().
int* statistics::Gaps::refCounter |