From 20703ceac4298647d9e1837b861ead8968213a34 Mon Sep 17 00:00:00 2001 From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Mon, 5 Jul 2010 08:41:37 +0000 Subject: [PATCH] readd SubstWeightMatrix export Note to self: Don't commit anything before 8 in the morning! git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2506 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- modules/seq/alg/pymod/wrap_seq_alg.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/seq/alg/pymod/wrap_seq_alg.cc b/modules/seq/alg/pymod/wrap_seq_alg.cc index b9e4b683e..7ec249db1 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")); -- GitLab