]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedcommand.cpp
minor bugs fixes and added line and label options to read.otu's parselist and shared...
[mothur.git] / sharedcommand.cpp
index 0cc1e22f2d9067fb7fcad21b6cff5c456f5e7049..a797d5408d151beddc73be085111bbcf41cd84cd 100644 (file)
@@ -46,9 +46,14 @@ int SharedCommand::execute(){
                shared = new Shared();
                int i = 0;
                while(SharedList != NULL){
-                       shared->getSharedVectors(i, SharedList); //fills sharedGroups with new info and updates sharedVector
+               
+                       if(globaldata->allLines == 1 || globaldata->lines.count(i+1) == 1 || globaldata->labels.count(SharedList->getLabel()) == 1){
+                       
+                               shared->getSharedVectors(i, SharedList); //fills sharedGroups with new info and updates sharedVector
+                               printSharedData(); //prints info to the .shared file
+                       }
+                       
                        SharedList = input->getSharedListVector(); //get new list vector to process
-                       printSharedData(); //prints info to the .shared file
                        i++;
                }
                return 0;