X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedcommand.cpp;h=a797d5408d151beddc73be085111bbcf41cd84cd;hb=16bea3130e36addc54e2116dfbcd02d706ebee45;hp=0cc1e22f2d9067fb7fcad21b6cff5c456f5e7049;hpb=1b2517db06f3c6cd5f5c67198261361ce8dad611;p=mothur.git diff --git a/sharedcommand.cpp b/sharedcommand.cpp index 0cc1e22..a797d54 100644 --- a/sharedcommand.cpp +++ b/sharedcommand.cpp @@ -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;