]> git.donarmstrong.com Git - mothur.git/blobdiff - inputdata.cpp
fixed bug with getting sharedrabunds for venn, heatmap and tree.shared commands,...
[mothur.git] / inputdata.cpp
index 2c249e6a4a42b89a93b48a4252c60613f40fae9f..05eaaca210ce4fe1fc5413a6feb9a9347bb7206b 100644 (file)
@@ -183,14 +183,14 @@ OrderVector* InputData::getOrderVector(){
        }       
 }
 /***********************************************************************/
-
+//this is used when you don't need the order vector
 vector<SharedRAbundVector*> InputData::getSharedRAbundVectors(){
        try {
                if(fileHandle){
                        if (format == "sharedfile")  {
-                               SharedOrder = new SharedOrderVector(fileHandle);
-                               if (SharedOrder != NULL) {
-                                       return SharedOrder->getSharedRAbundVector();
+                               SharedRAbundVector* SharedRAbund = new SharedRAbundVector(fileHandle);
+                               if (SharedRAbund != NULL) {
+                                       return SharedRAbund->getSharedRAbundVectors();
                                }
                        }else if (format == "shared") {
                                SharedList = new SharedListVector(fileHandle);
@@ -216,6 +216,7 @@ vector<SharedRAbundVector*> InputData::getSharedRAbundVectors(){
        }       
 }
 
+
 /***********************************************************************/
 
 SAbundVector* InputData::getSAbundVector(){