improve os x makefiles
[mussa.git] / alg / glseqbrowser.cpp
index 6991152c342c801cc0f3138f4243f5ced9d281a8..a523ebbae6121bacd48c818b4e9dda23c520b66f 100644 (file)
@@ -2,6 +2,7 @@
 #include "mussa_exceptions.hpp"
 
 #include <iostream>
+#include <sstream>
 #include <stdexcept>
 
 using namespace std;
@@ -327,6 +328,12 @@ GlSeqBrowser::link(const vector<int>& path, const vector<bool>& rc, int )
     // should i throw an error instead?
     return;
   }
+  if (path.size() != track_container.size()-1 ) {
+    stringstream msg;
+    msg << "Path size [" << path.size() << "] and track size [" 
+        << track_container.size() << "] don't match" << endl;
+    throw mussa_error(msg.str());
+ }
   if (path.size() != rc.size()) {
     throw runtime_error("path and reverse compliment must be the same length");
   }