len(mussa.paths()) should equal the number of found paths
[mussa.git] / py / nway_paths.cpp
index 6ca2f20e0a7ecce7507c49f15045ca61be353faa..ba605d9d76c2ad3aef76122368b2b95a378949c9 100644 (file)
@@ -20,13 +20,18 @@ void export_nway_paths()
   ;*/
  
    py::class_<NwayPaths>("NwayPaths")
-    .def("__len__", &NwayPaths::sequence_count)
+    .def("__len__", &NwayPaths::size, "number of paths")
+    .def("sequence_count", &NwayPaths::sequence_count,
+         "number of sequences in this analysis")
     .def("clear", &NwayPaths::clear, "remove all paths")
     .add_property("threshold", &NwayPaths::get_threshold, "Get hard threshold")
     .add_property("soft_threshold", &NwayPaths::get_soft_threshold, &NwayPaths::set_soft_threshold)
     .add_property("window_size", &NwayPaths::get_window)
     .add_property("pathz", py::range(&NwayPaths::pbegin, &NwayPaths::pend))
+    .def("path_size", &NwayPaths::path_size, "number of nway paths")
     .add_property("refinedPathz", py::range(&NwayPaths::rpbegin, &NwayPaths::rpend))
+    .def("refined_path_size", &NwayPaths::refined_path_size, 
+         "number of paths that match the soft threshold")
    ;
 }