]> git.donarmstrong.com Git - mothur.git/blobdiff - listvector.cpp
fixed blast code path problem
[mothur.git] / listvector.cpp
index 3af7cfe93f2d2b6dba45ab7b9ae5cd8c17184255..205fe607eadaf8c15a9e93e3c10b8ecda62629a7 100644 (file)
@@ -9,13 +9,10 @@
 
 using namespace std;
 
-#include <map>
-#include <exception>
+
 #include "sabundvector.hpp"
 #include "rabundvector.hpp"
 #include "ordervector.hpp"
-#include "datavector.hpp"
-#include "utilities.hpp"
 #include "listvector.hpp"
 
 
@@ -232,32 +229,6 @@ SAbundVector ListVector::getSAbundVector(){
        }
 }
 
-/***********************************************************************/
-SharedOrderVector* ListVector::getSharedOrderVector(){
-       globaldata = GlobalData::getInstance();
-       string groupName, names, name;
-       groupmap = globaldata->gGroupmap;
-       SharedOrderVector* order;
-       order = new SharedOrderVector();
-       order->setLabel(label);
-       
-       for(int i=0;i<numBins;i++){
-               int binSize = getNumNames(get(i));      //find number of individual in given bin        
-               names = get(i);
-               while (names.find_first_of(',') != -1) { 
-                       name = names.substr(0,names.find_first_of(','));
-                       names = names.substr(names.find_first_of(',')+1, names.length());
-                       groupName = groupmap->getGroup(name);
-                       order->push_back(i, binSize, groupName);  //i represents what bin you are in
-               }
-               //get last name
-               groupName = groupmap->getGroup(names);
-               order->push_back(i, binSize, groupName);
-       }
-       random_shuffle(order->begin(), order->end());
-       return order;
-}
-
 /***********************************************************************/
 
 OrderVector ListVector::getOrderVector(map<string,int>* orderMap = NULL){