diff --git a/modules/seq/alg/pymod/wrap_seq_alg.cc b/modules/seq/alg/pymod/wrap_seq_alg.cc index b9e4b683e0b3b6a599b420488fc08b5f552c1736..7ec249db1bfb54da1dae2611603e03140bcf8f51 100644 --- a/modules/seq/alg/pymod/wrap_seq_alg.cc +++ b/modules/seq/alg/pymod/wrap_seq_alg.cc @@ -23,6 +23,7 @@ #include <ost/seq/alg/sequence_identity.hh> #include <ost/seq/alg/ins_del.hh> #include <ost/seq/alg/conservation.hh> +#include <ost/seq/alg/subst_weight_matrix.hh> using namespace boost::python; using namespace ost::seq; using namespace ost::seq::alg; @@ -44,6 +45,11 @@ BOOST_PYTHON_MODULE(_seq_alg) .def("GetDeletions", &InsDel::GetDeletions) .def("GetInsertions", &InsDel::GetInsertions) ; + + class_<SubstWeightMatrix, SubstWeightMatrixPtr>("SubstWeightMatrix", init<>()) + .def("GetWeight", &SubstWeightMatrix::GetWeight) + .def("SetWeight", &SubstWeightMatrix::SetWeight) + ; def("MergePairwiseAlignments", &MergePairwiseAlignments); def("Conservation", &Conservation, (arg("assign")=true, arg("prop_name")="cons"));