1 #include <boost/python.hpp>
3 using namespace boost::python;
5 #include "alg/mussa.hpp"
9 void (Mussa::*load_mupa_string)(std::string) = &Mussa::load_mupa_file;
10 class_<Mussa>("Mussa")
11 .def("save", &Mussa::save)
12 .def("load", &Mussa::load, "Load previous run analysis")
13 .def("load_mupa", load_mupa_string, "Load mussa parameter file")
14 .def("clear", &Mussa::clear, "Clear the current analysis")
15 .add_property("name", &Mussa::get_name, &Mussa::set_name)
16 .def("size", &Mussa::size, "Number of sequences to be used "
18 .add_property("window", &Mussa::get_window, &Mussa::set_window,
19 "the number of base pairs in the sliding window")
20 .add_property("threshold", &Mussa::get_threshold, &Mussa::set_threshold,
21 "how many base pairs must match between two windows")
22 .def("softThreshold", &Mussa::set_soft_thres)
23 .add_property("analysisMode", &Mussa::get_analysis_mode,
24 &Mussa::set_analysis_mode)
25 .add_property("analysisModeName", &Mussa::get_analysis_mode_name)
26 .def("analyze", &Mussa::analyze, "Run the analysis")
27 .def("paths", &Mussa::paths, return_internal_reference<>())
28 //.def("sequences", &Mussa::sequences)
29 .def("addSequence", &Mussa::add_a_seq) ;
31 enum_<Mussa::analysis_modes>("analysis_modes")
32 .value("TransitiveNway", Mussa::TransitiveNway )
33 .value("RadialNway", Mussa::RadialNway )
34 .value("EntropyNway", Mussa::EntropyNway )
35 .value("RecursiveNway", Mussa::RecursiveNway )