1 #ifndef CU_DISTMAT__HPP
2 #define CU_DISTMAT__HPP
52 "Percent Identity (Aligned Residues)",
53 "Kimura-Corrected % Identity (Aligned Residues)",
54 "Score of Aligned Residues",
55 "Score of Optimally-Extended Blocks",
56 "Blast Score (Footprint)",
57 "Blast Score (Full Sequence)",
58 "Percent Identity with variable Alignment"
86 static string GetDistMethodName(
EDistMethod method);
87 static bool DistMethodUsesScoringMatrix(
EDistMethod method);
89 static bool RequireAlignedBlocks(
EDistMethod method);
108 bool UseAll()
const {
return !m_useAligned;}
115 double GetMaxEntry();
116 double GetMinEntry();
119 void EnforceSymmetry();
123 void ReplaceZeroWithTinyValue(
const double tiny = TINY_DISTANCE);
132 string GetMatrixName();
136 void SetNTermExt(
int ext);
137 void SetCTermExt(
int ext);
145 static void readMat(ifstream& ifs,
DistanceMatrix& dm,
bool triangular);
146 static void writeMat(ofstream& ofs,
const DistanceMatrix& dm,
bool triangular);
147 void printMat(
bool triangular=
true);
164 virtual void initialize();
165 void writeMat(ostream& os,
bool triangular=
true)
const;
ScoreMatrix * m_scoreMatrix
static const int OUTPUT_PRECISION
void SetUseAligned(bool useAligned)
static const bool USE_ALIGNED_DEFAULT
EDistMethod GetDistMethod()
virtual bool ComputeMatrix(pProgressFunction pFunc)=0
AlignmentCollection * m_aligns
string GetDistMethodName()
std::vector< std::string > m_ConvertedSequences
DistanceMatrix(const int nrows)
static const int INITIAL_SCORE_BOUND
static const double HUGE_DISTANCE
static const int NO_EXTENSION
static const double TINY_DISTANCE
const EDistMethod GLOBAL_DEFAULT_DIST_METHOD
@ ePercentIdentityRelaxed
void(* pProgressFunction)(int Num, int Total)
const int NUMBER_OF_DISTANCE_METHODS
const string DISTANCE_METHOD_NAMES[]
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_CDUTILS_EXPORT