Skip to content
Snippets Groups Projects
Commit 68a43c51 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

Make Get Min/Max Weight functions in substitution matrix const and

export them to Python
parent 4d006b6c
Branches
Tags
No related merge requests found
...@@ -61,6 +61,8 @@ BOOST_PYTHON_MODULE(_ost_seq_alg) ...@@ -61,6 +61,8 @@ BOOST_PYTHON_MODULE(_ost_seq_alg)
class_<SubstWeightMatrix, SubstWeightMatrixPtr>("SubstWeightMatrix", init<>()) class_<SubstWeightMatrix, SubstWeightMatrixPtr>("SubstWeightMatrix", init<>())
.def("GetWeight", &SubstWeightMatrix::GetWeight) .def("GetWeight", &SubstWeightMatrix::GetWeight)
.def("SetWeight", &SubstWeightMatrix::SetWeight) .def("SetWeight", &SubstWeightMatrix::SetWeight)
.def("GetMinWeight", &SubstWeightMatrix::GetMinWeight)
.def("GetMaxWeight", &SubstWeightMatrix::GetMaxWeight)
; ;
def("MergePairwiseAlignments", &MergePairwiseAlignments); def("MergePairwiseAlignments", &MergePairwiseAlignments);
......
...@@ -65,10 +65,10 @@ public: ...@@ -65,10 +65,10 @@ public:
} }
/// \brief Get the minimal substitution weight of the matrix /// \brief Get the minimal substitution weight of the matrix
WeightType GetMinWeight() { return min_weight_; } WeightType GetMinWeight() const { return min_weight_; }
/// \brief Get the maximal substitution weight of the matrix /// \brief Get the maximal substitution weight of the matrix
WeightType GetMaxWeight() { return max_weight_; } WeightType GetMaxWeight() const { return max_weight_; }
/// \brief Set the substitution weight between two amino acids /// \brief Set the substitution weight between two amino acids
/// ///
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment