7b06fb80aa3f191ef9406133ffa089baf5ecf7ed
[mussa.git] / py / annot.cpp
1 #include <boost/python.hpp>
2 using namespace boost::python;
3
4 #include "alg/sequence.hpp"
5
6 void export_annot()
7 {
8   class_<annot>("annot")
9     .def(init<int, int, std::string, std::string>())
10     .def_readwrite("begin", &annot::begin)
11     .def_readwrite("end", &annot::end)
12     .def_readwrite("type", &annot::type)
13     .def_readwrite("name", &annot::name)
14   ;
15
16   class_<motif, bases<annot> >("motif", init<int, std::string>())
17     .def_readwrite("sequence", &motif::sequence)
18   ;
19 }