increase the use of python in mussa
[mussa.git] / py / sequence.cpp
1 #include <boost/python.hpp>
2 using namespace boost::python;
3
4 #include <string>
5 #include "alg/glsequence.hpp"
6
7 void export_sequence()
8 {
9   class_<Sequence>("Sequence")
10     .def(init<std::string>())
11     .def("__str__", &Sequence::get_seq, return_value_policy<return_by_value>())
12     .def("size", &Sequence::size)
13     .def("__len__", &Sequence::size)
14     //.add_property("header", &Sequence::get_header)
15   ;
16 }