Skip to content
Snippets Groups Projects
Commit 8b9685b4 authored by Gerardo Tauriello's avatar Gerardo Tauriello
Browse files

Export useful conop functions.

parent 53f75184
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,9 @@ using namespace ost;
using namespace ost::conop;
using namespace boost::python;
// WRAPPERS
namespace {
struct PyProcessor : public Processor {};
struct WrappedProcessor : public PyProcessor, public wrapper<WrappedProcessor> {
WrappedProcessor(PyObject* self): self_(self)
......@@ -48,6 +51,13 @@ struct WrappedProcessor : public PyProcessor, public wrapper<WrappedProcessor> {
PyObject* self_;
};
void (*AssignBackboneTorsionsChain)(mol::ChainHandle) = &AssignBackboneTorsions;
void (*AssignBackboneTorsionsResList)(mol::ResidueHandleList)
= &AssignBackboneTorsions;
void (*AssignBackboneTorsionsRes)(mol::ResidueHandle, mol::ResidueHandle,
mol::ResidueHandle) = &AssignBackboneTorsions;
} // anon ns
void export_processor() {
......@@ -84,6 +94,12 @@ void export_processor() {
.def("DoProcess", &WrappedProcessor::DoProcessDefault)
.def("ToString", &WrappedProcessor::ToStringDefault)
;
def("IsBondFeasible", &IsBondFeasible);
def("AssignBackboneTorsions", AssignBackboneTorsionsChain, (arg("chain")));
def("AssignBackboneTorsions", AssignBackboneTorsionsResList,
(arg("residues")));
def("AssignBackboneTorsions", AssignBackboneTorsionsRes,
(arg("prev"), arg("res"), arg("next")));
def("IsBondFeasible", &IsBondFeasible, (arg("atom_a"), arg("atom_b")));
def("GetUnknownAtomsOfResidue", &GetUnknownAtomsOfResidue,
(arg("residue"), arg("compound"), arg("strict_hydrogens")=false));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment