add callback for tracking analysis progress
[mussa.git] / alg / nway_paths.hpp
index 10aa6cba8581d861d0b47773b02d5adb8334ce46..6a1bec85eead18aac4afddc7693fc53df5d325d2 100644 (file)
@@ -19,8 +19,9 @@
 #include <string>
 #include <vector>
 
-#include "alg/flp.hpp"
 #include "alg/conserved_path.hpp"
+#include "alg/flp.hpp"
+#include "alg/mussa_callback.hpp"
 
 class NwayPaths
 {
@@ -33,6 +34,7 @@ class NwayPaths
 
     double ent_thres;
     std::vector<char *> c_sequences; //used by entropy_path_search
+    analysis_callback progress_cb;
 
   public:
     NwayPaths();
@@ -45,6 +47,10 @@ class NwayPaths
     int get_threshold() const;
     //! return window size used for this analysis
     int get_window() const;
+    //! set analysis progress callback
+    void set_progress_callback(analysis_callback cb);
+    //! get analysis progress callback
+    analysis_callback get_progress_callback() const;
 
     void radiate_path_search(std::vector<std::vector<FLPs> > all_comparisons);
     void trans_path_search(std::vector<std::vector<FLPs> > all_comparisons);