Skip to content

Commit 45c9b2b

Browse files
sebastiandeorowiczagudys
authored andcommitted
pfasum ver fix
1 parent 9424c5d commit 45c9b2b

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ FAMSA.VC.db
1616
/famsa
1717
/obj
1818
/bin
19+
/libs/nasm

src/core/params.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void CParams::show_usage(bool expert)
108108
if (expert) {
109109
LOG_NORMAL << "Advanced options:\n"
110110
<< " -r <value> - no. of refinement iterations (default: " << n_refinements << ")\n"
111-
<< " -sm <MIQS | PFASUM31 | PFASUM40 | PFASUM60> - scoring matrix (default: " << ScoringMatrices::toString(matrix_type) << ")\n"
111+
<< " -sm <MIQS | PFASUM31 | PFASUM43 | PFASUM60> - scoring matrix (default: " << ScoringMatrices::toString(matrix_type) << ")\n"
112112
<< " -go <value> - gap open cost (default: " << gap_open << ")\n"
113113
<< " -ge <value> - gap extension cost (default: " << gap_ext << ")\n"
114114
<< " -tgo <value> - terminal gap open cost (default: " << gap_term_open << ")\n"

src/core/params.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class CParams
5858

5959
public:
6060
// ScoringMatrices::matrix_type_t matrix_type = ScoringMatrices::matrix_type_t::MIQS;
61-
ScoringMatrices::matrix_type_t matrix_type = ScoringMatrices::matrix_type_t::PFASUM40;
61+
ScoringMatrices::matrix_type_t matrix_type = ScoringMatrices::matrix_type_t::PFASUM43;
6262

6363
score_t gap_open;
6464
score_t gap_ext;

src/core/scoring_matrix.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ class ScoringMatrices
7070
{ -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.000000 , -10.00000, 12 }
7171
} };
7272

73-
// PFASUM 40
74-
inline static std::array<std::array<double, 24>, 24> PFASUM40 = { {
73+
// PFASUM 43
74+
inline static std::array<std::array<double, 24>, 24> PFASUM43 = { {
7575
{ 3.602925 , -0.945825 , -1.150350 , -1.229775 , 0.492375 , -0.457575 , -0.574350 , 0.284250 , -1.438200 , -0.863925 , -0.872400 , -0.921750 , -0.335475 , -1.544625 , -0.513600 , 0.729375 , 0.063900 , -2.088525 , -1.773075 , 0.136200 , -4.194675 , -3.529575 , -13.40048 , -11 },
7676
{ -0.945825 , 5.731950 , 0.223200 , -0.320850 , -2.810025 , 1.603350 , 0.711900 , -1.578450 , 0.809250 , -3.125925 , -2.697225 , 2.750175 , -1.748550 , -3.287625 , -0.984225 , -0.249525 , -0.368550 , -1.833225 , -1.481550 , -2.586375 , -3.073275 , -1.927425 , -13.41682 , -11 },
7777
{ -1.150350 , 0.223200 , 5.742150 , 2.227200 , -2.314125 , 0.881700 , 0.696075 , 0.298575 , 1.008825 , -3.707475 , -3.654825 , 0.983700 , -2.317875 , -3.330300 , -0.792675 , 1.094775 , 0.375975 , -3.303450 , -1.572600 , -3.231750 , -0.538875 , -2.232450 , -13.31977 , -11 },
@@ -127,7 +127,7 @@ class ScoringMatrices
127127
} };
128128

129129
public:
130-
enum class matrix_type_t { MIQS, PFASUM31, PFASUM40, PFASUM60};
130+
enum class matrix_type_t { MIQS, PFASUM31, PFASUM43, PFASUM60};
131131

132132
static inline std::array<std::array<double, 24>, 24>& get_matrix(const matrix_type_t matrix_type)
133133
{
@@ -136,22 +136,22 @@ class ScoringMatrices
136136
return MIQS;
137137
case matrix_type_t::PFASUM31:
138138
return PFASUM31;
139-
case matrix_type_t::PFASUM40:
140-
return PFASUM40;
139+
case matrix_type_t::PFASUM43:
140+
return PFASUM43;
141141
case matrix_type_t::PFASUM60:
142142
return PFASUM60;
143143
default:
144144
assert(0);
145145
}
146-
return PFASUM40;
146+
return PFASUM43;
147147
}
148148

149149
static std::string toString(matrix_type_t v) {
150150
switch (v) {
151151
case matrix_type_t::MIQS: return "MIQS";
152152
case matrix_type_t::PFASUM31: return "PFASUM31";
153-
case matrix_type_t::PFASUM40: return "PFASUM40";
154-
case matrix_type_t::PFASUM60: return "PFASUM30";
153+
case matrix_type_t::PFASUM43: return "PFASUM43";
154+
case matrix_type_t::PFASUM60: return "PFASUM60";
155155
default:
156156
throw new std::runtime_error("Error: Illegal scoring matrix type.");
157157
}
@@ -162,7 +162,7 @@ class ScoringMatrices
162162
static matrix_type_t fromString(const std::string& name) {
163163
if (name == "MIQS" || name == "miqs") { return matrix_type_t::MIQS; }
164164
if (name == "PFASUM31" || name == "pfasum31") { return matrix_type_t::PFASUM31; }
165-
if (name == "PFASUM40" || name == "pfasum40") { return matrix_type_t::PFASUM40; }
165+
if (name == "PFASUM43" || name == "pfasum43") { return matrix_type_t::PFASUM43; }
166166
if (name == "PFASUM60" || name == "pfasum60") { return matrix_type_t::PFASUM60; }
167167

168168
// something went wrong

0 commit comments

Comments
 (0)