Skip to content
Snippets Groups Projects
Commit a49f35e8 authored by Marco Biasini's avatar Marco Biasini
Browse files

export GetMatchingBackboneViews

parent e687468f
No related branches found
No related tags found
No related merge requests found
...@@ -215,4 +215,6 @@ void export_EntityView() ...@@ -215,4 +215,6 @@ void export_EntityView()
class_<EntityViewList>("EntityViewList", init<>()) class_<EntityViewList>("EntityViewList", init<>())
.def(vector_indexing_suite<EntityViewList>()) .def(vector_indexing_suite<EntityViewList>())
; ;
to_python_converter<std::pair<EntityView, EntityView>,
PairToTupleConverter<EntityView, EntityView> >();
} }
...@@ -334,9 +334,6 @@ void export_sequence() ...@@ -334,9 +334,6 @@ void export_sequence()
class_<SeqListIter>("SeqListIter", no_init) class_<SeqListIter>("SeqListIter", no_init)
.def("next", &SeqListIter::next) .def("next", &SeqListIter::next)
; ;
to_python_converter<std::pair<mol::EntityView, mol::EntityView>,
PairToTupleConverter<mol::EntityView, mol::EntityView> >();
class_<AlignmentHandle>("AlignmentHandle", init<>()) class_<AlignmentHandle>("AlignmentHandle", init<>())
.def("GetCount", &AlignmentHandle::GetCount) .def("GetCount", &AlignmentHandle::GetCount)
.add_property("sequence_count", &AlignmentHandle::GetCount) .add_property("sequence_count", &AlignmentHandle::GetCount)
...@@ -345,6 +342,8 @@ void export_sequence() ...@@ -345,6 +342,8 @@ void export_sequence()
.def("GetResidueIndex", &AlignmentHandle::GetResidueIndex) .def("GetResidueIndex", &AlignmentHandle::GetResidueIndex)
.def("GetResidue", &AlignmentHandle::GetResidue) .def("GetResidue", &AlignmentHandle::GetResidue)
.def("AddSequence", &AlignmentHandle::AddSequence) .def("AddSequence", &AlignmentHandle::AddSequence)
.def("GetMatchingBackboneViews", &AlignmentHandle::GetMatchingBackboneViews,
(arg("idx_a")=0, arg("idx_b")=1))
.def("FindSequence", &AlignmentHandle::FindSequence) .def("FindSequence", &AlignmentHandle::FindSequence)
.def("FindSequenceIndex", &AlignmentHandle::FindSequenceIndex) .def("FindSequenceIndex", &AlignmentHandle::FindSequenceIndex)
.def("Copy", &AlignmentHandle::Copy) .def("Copy", &AlignmentHandle::Copy)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment