track where our analysis is saved and if the analysis is empty
[mussa.git] / alg / mussa.hpp
index 7aa9c465d9b53cebfeb48e064ee49e8836fc3311..28c75ca28614ea6db87e4e70d8db8b154299c680 100644 (file)
@@ -52,6 +52,8 @@ public:
     void save_muway(boost::filesystem::path save_path);
     //! load a saved analysis directory
     void load(boost::filesystem::path ana_path);
+    // ! return path to the where the analysis is stored
+    boost::filesystem::path get_analysis_path() const;
 
     //! clear parameters and initialize data lists
     void clear();
@@ -92,7 +94,9 @@ public:
     //! return a string name for an analysis mode
     std::string get_analysis_mode_name() const;
     //! return if we have unsaved changes
-    bool is_dirty() const { return dirty; }
+    bool is_dirty() const;
+    //! is there anything loaded into this analysis?
+    bool empty() const;
 
     //! return the refined paths found by the nway analysis.
     const NwayPaths& paths() const;
@@ -207,6 +211,8 @@ public:
     std::set<Sequence> motif_sequences;
     //! color manager
     boost::shared_ptr<AnnotationColors> color_mapper;
+    //! path to our analysis
+    boost::filesystem::path analysis_path;
     //! flag indicating if we have unsaved changes
     bool dirty;