]> git.donarmstrong.com Git - mothur.git/blobdiff - listvector.cpp
finishing the container classes, combining read.otu and read.list commands. some...
[mothur.git] / listvector.cpp
index 3af7cfe93f2d2b6dba45ab7b9ae5cd8c17184255..3018efed7b94dc4f57b65e5e2b7eaa17f870a526 100644 (file)
@@ -232,32 +232,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){