if(allLines == 1 || lines.count(count) == 1 || labels.count(list->getLabel()) == 1){
- error = process(list, count);
+ error = process(list);
if (error == 1) { return 0; }
processedLabels.insert(list->getLabel());
delete list;
list = input->getListVector(lastLabel);
- error = process(list, count);
+ error = process(list);
if (error == 1) { return 0; }
processedLabels.insert(list->getLabel());
delete list;
list = input->getListVector(lastLabel);
- error = process(list, count);
+ error = process(list);
if (error == 1) { return 0; }
delete list;
}
//**********************************************************************************************************************
//return 1 if error, 0 otherwise
-int BinSeqCommand::process(ListVector* list, int count) {
+int BinSeqCommand::process(ListVector* list) {
try {
string binnames, name, sequence;
string outputFileName = getRootName(globaldata->getListFile()) + list->getLabel() + ".fasta";
openOutputFile(outputFileName, out);
- mothurOut(list->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(list->getLabel()); mothurOutEndLine();
//for each bin in the list vector
for (int i = 0; i < list->size(); i++) {
ifstream in, inNames;
void readNamesFile();
- int process(ListVector*, int);
+ int process(ListVector*);
};
#endif
if(allLines == 1 || lines.count(count) == 1 || labels.count(order->getLabel()) == 1){
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
process(order);
processedLabels.insert(order->getLabel());
delete order;
order = input->getSharedOrderVector(lastLabel);
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
process(order);
processedLabels.insert(order->getLabel());
if (needToRun == true) {
delete order;
order = input->getSharedOrderVector(lastLabel);
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
process(order);
delete order;
data.resize(3,0);
double sobs = (double)rank->getNumBins();
-
- double singles = (double)rank->get(1);
- double doubles = (double)rank->get(2);
+
+ //this is a modification do to a vector fill error that occurs when an empty sharedRabund creates a sabund
+ //in that case there is no 1 0r 2.
+ double singles;
+ if (rank->size() > 1) {
+ singles = (double)rank->get(1);
+ }else{ singles = 0.0; }
+
+ double doubles;
+ if (rank->size() > 2) {
+ doubles = (double)rank->get(2);
+ }else{ doubles = 0.0; }
+
double chaovar = 0.0000;
//cout << "singles = " << singles << " doubles = " << doubles << " sobs = " << sobs << endl;
double chao = sobs + singles*(singles-1)/(2*(doubles+1));
cCurve->getCurve(freq);
delete cCurve;
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
processedLabels.insert(order->getLabel());
userLabels.erase(order->getLabel());
userLines.erase(count);
cCurve->getCurve(freq);
delete cCurve;
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
processedLabels.insert(order->getLabel());
userLabels.erase(order->getLabel());
}
delete order;
order = (input->getOrderVector(lastLabel));
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
cCurve = new Collect(order, cDisplays);
cCurve->getCurve(freq);
void close() { output->resetFile(); };
bool isCalcMultiple() { return estimate->getMultiple(); }
+ string getName() { return estimate->getName(); }
+
private:
+
Calculator* estimate;
FileOutput* output;
int nSeqs, timesCalled, numGroupComb;
void notifyDisplays(){
for(set<Display*>::iterator pos=displays.begin();pos!=displays.end();pos++){
+//cout << (*pos)->getName() << endl;
if ( ((*pos)->isCalcMultiple() == true) || ( ((*pos)->isCalcMultiple() == false) && (shared.size() == 2) ) ) {
(*pos)->update(shared, NumSeqs, NumGroupComb);
}
virtual void reset() = 0;
virtual void close() = 0;
virtual bool isCalcMultiple() = 0;
+ virtual string getName() { return ""; };
virtual ~Display() {}
private:
-
+
};
/***********************************************************************/
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "ThreeColumnFile", "resetFile");
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "ColumnFile", "resetFile");
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "SharedThreeColumnFile", "resetFile");
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "OneColumnFile", "resetFile");
outFile.close();
}
counter = 1;
-
+
remove(inName.c_str());
+
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "SharedOneColumnFile", "resetFile");
while((list != NULL) && ((allLines == 1) || (userLabels.size() != 0) || (userLines.size() != 0))) {
if (allLines == 1 || lines.count(count) == 1 || labels.count(list->getLabel()) == 1){
- mothurOut(list->getLabel() + "\t" + toString(list->size()) + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(list->getLabel() + "\t" + toString(list->size())); mothurOutEndLine();
error = process(list);
if (error == 1) { return 0; } //there is an error in hte input files, abort command
if ((anyLabelsToProcess(list->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
delete list;
list = input->getListVector(lastLabel);
- mothurOut(list->getLabel() + "\t" + toString(list->size()) + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(list->getLabel() + "\t" + toString(list->size())); mothurOutEndLine();
error = process(list);
if (error == 1) { return 0; } //there is an error in hte input files, abort command
if (needToRun == true) {
delete list;
list = input->getListVector(lastLabel);
- mothurOut(list->getLabel() + "\t" + toString(list->size()) + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(list->getLabel() + "\t" + toString(list->size())); mothurOutEndLine();
error = process(list);
delete list;
if (error == 1) { return 0; } //there is an error in hte input files, abort command
while((list != NULL) && ((allLines == 1) || (userLabels.size() != 0) || (userLines.size() != 0))) {
if(allLines == 1 || lines.count(count) == 1 || labels.count(list->getLabel()) == 1){
- mothurOut(list->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(list->getLabel()); mothurOutEndLine();
rabund = new RAbundVector();
*rabund = (list->getRAbundVector());
delete list;
list = input->getListVector(lastLabel);
- mothurOut(list->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(list->getLabel()); mothurOutEndLine();
rabund = new RAbundVector();
*rabund = (list->getRAbundVector());
delete list;
list = input->getListVector(lastLabel);
- mothurOut(list->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(list->getLabel()); mothurOutEndLine();
rabund = new RAbundVector();
*rabund = (list->getRAbundVector());
while((order != NULL) && ((allLines == 1) || (userLabels.size() != 0) || (userLines.size() != 0))) {
if(allLines == 1 || lines.count(count) == 1 || labels.count(order->getLabel()) == 1){
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
sabund = new SAbundVector();
*sabund = (order->getSAbundVector());
sabund->print(out);
delete order;
order = (input->getOrderVector(lastLabel));
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
sabund = new SAbundVector();
*sabund = (order->getSAbundVector());
sabund->print(out);
delete order;
order = (input->getOrderVector(lastLabel));
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
sabund = new SAbundVector();
*sabund = (order->getSAbundVector());
sabund->print(out);
if(allLines == 1 || lines.count(count) == 1 || labels.count(lookup[0]->getLabel()) == 1){
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
heatmap->getPic(lookup);
processedLabels.insert(lookup[0]->getLabel());
if ((anyLabelsToProcess(lookup[0]->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
heatmap->getPic(lookup);
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
heatmap->getPic(lookup);
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
}
if(allLines == 1 || lines.count(count) == 1 || labels.count(rabund->getLabel()) == 1){
- mothurOut(rabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(rabund->getLabel()); mothurOutEndLine();
heatmap->getPic(rabund);
processedLabels.insert(rabund->getLabel());
delete rabund;
rabund = input->getRAbundVector(lastLabel);
- mothurOut(rabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(rabund->getLabel()); mothurOutEndLine();
heatmap->getPic(rabund);
delete rabund;
rabund = input->getRAbundVector(lastLabel);
- mothurOut(rabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(rabund->getLabel()); mothurOutEndLine();
heatmap->getPic(rabund);
delete rabund; globaldata->rabund = NULL;
if(allLines == 1 || lines.count(count) == 1 || labels.count(lookup[0]->getLabel()) == 1){
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
heatmap->getPic(lookup, heatCalculators);
processedLabels.insert(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
heatmap->getPic(lookup, heatCalculators);
processedLabels.insert(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
heatmap->getPic(lookup, heatCalculators);
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
}
while((lookup[0] != NULL) && ((allLines == 1) || (userLabels.size() != 0) || (userLines.size() != 0))) {
if(allLines == 1 || lines.count(count) == 1 || labels.count(lookup[0]->getLabel()) == 1){
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
processedLabels.insert(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
processedLabels.insert(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
}
#include <cerrno>
#include <ctime>
#include <limits>
-#include <unistd.h>
+
#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
#include <sys/wait.h>
+ #include <unistd.h>
#endif
using namespace std;
rCurve->getCurve(freq, nIters);
delete rCurve;
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
processedLabels.insert(order->getLabel());
userLabels.erase(order->getLabel());
userLines.erase(count);
rCurve->getCurve(freq, nIters);
delete rCurve;
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
processedLabels.insert(order->getLabel());
userLabels.erase(order->getLabel());
}
rCurve->getCurve(freq, nIters);
delete rCurve;
- mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(order->getLabel()); mothurOutEndLine();
delete order;
}
rCurve->getSharedCurve(freq, nIters);
delete rCurve;
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
processedLabels.insert(lookup[0]->getLabel());
userLabels.erase(lookup[0]->getLabel());
userLines.erase(count);
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
rCurve = new Rarefact(lookup, rDisplays);
rCurve->getSharedCurve(freq, nIters);
delete rCurve;
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
rCurve = new Rarefact(lookup, rDisplays);
rCurve->getSharedCurve(freq, nIters);
delete rCurve;
//calculate chao1, (numleaves-1) because numleaves contains the ++ values.
- bool bias;
+ bool bias = false;
for(int i=0;i<numLeaves;i++){
if (f2leaves[i]->lvalue == 0 || f2leaves[i]->rvalue == 0) { bias = true;}// break;}
}
if(globaldata->allLines == 1 || globaldata->lines.count(count) == 1 || globaldata->labels.count(SharedList->getLabel()) == 1){
lookup = SharedList->getSharedRAbundVector();
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
printSharedData(lookup); //prints info to the .shared file
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
SharedList = input->getSharedListVector(lastLabel); //get new list vector to process
lookup = SharedList->getSharedRAbundVector();
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
printSharedData(lookup); //prints info to the .shared file
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
SharedList = input->getSharedListVector(lastLabel); //get new list vector to process
lookup = SharedList->getSharedRAbundVector();
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
printSharedData(lookup); //prints info to the .shared file
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
if(allLines == 1 || lines.count(count) == 1 || labels.count(sabund->getLabel()) == 1){
- mothurOut(sabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(sabund->getLabel()); mothurOutEndLine();
processedLabels.insert(sabund->getLabel());
userLabels.erase(sabund->getLabel());
userLines.erase(count);
delete sabund;
sabund = input->getSAbundVector(lastLabel);
- mothurOut(sabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(sabund->getLabel()); mothurOutEndLine();
processedLabels.insert(sabund->getLabel());
userLabels.erase(sabund->getLabel());
delete sabund;
sabund = input->getSAbundVector(lastLabel);
- mothurOut(sabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(sabund->getLabel()); mothurOutEndLine();
outputFileHandle << sabund->getLabel();
for(int i=0;i<sumCalculators.size();i++){
vector<double> data = sumCalculators[i]->getValues(sabund);
while((lookup[0] != NULL) && ((allLines == 1) || (userLabels.size() != 0) || (userLines.size() != 0))) {
if(allLines == 1 || lines.count(count) == 1 || labels.count(lookup[0]->getLabel()) == 1){
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
processedLabels.insert(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
processedLabels.insert(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
}
// this is true if right child had a greater parsimony for a certain group
if(maxPars > 1){
//erase all the groups that are only 1 because you found something with 2.
- for(it=parsimony.begin();it!=parsimony.end();it++){
+ for(it=parsimony.begin();it!=parsimony.end();){
if(it->second == 1){
- parsimony.erase(it->first);
-// it--;
- }
+ parsimony.erase(it++);
+ }else { it++; }
}
//set one remaining groups to 1
//so with our above example p[white] = 2 would be left and it would become p[white] = 1
int rc = tree[i].getRChild();
//loop through nodes groups removing the ones the user doesn't want
- for (it = tree[lc].pGroups.begin(); it != tree[lc].pGroups.end(); it++) {
- if (inUsersGroups(it->first, g) != true) { tree[lc].pGroups.erase(it->first); }
+ for(it=tree[lc].pGroups.begin();it!=tree[lc].pGroups.end();){
+ if (inUsersGroups(it->first, g) != true) {
+ tree[lc].pGroups.erase(it++);
+ }else { it++; }
}
-
+
//loop through nodes groups removing the ones the user doesn't want
- for (it = tree[rc].pGroups.begin(); it != tree[rc].pGroups.end(); it++) {
- if (inUsersGroups(it->first, g) != true) { tree[rc].pGroups.erase(it->first); }
+ for(it=tree[rc].pGroups.begin();it!=tree[rc].pGroups.end();){
+ if (inUsersGroups(it->first, g) != true) {
+ tree[rc].pGroups.erase(it++);
+ }else { it++; }
}
//set parsimony groups to left child
// this is true if right child had a greater parsimony for a certain group
if(maxPars > 1){
//erase all the groups that are only 1 because you found something with 2.
- for(it=parsimony.begin();it!=parsimony.end();it++){
+ for(it=parsimony.begin();it!=parsimony.end();){
if(it->second == 1){
- parsimony.erase(it->first);
- }
+ parsimony.erase(it++);
+ }else { it++; }
}
+
for(it=parsimony.begin();it!=parsimony.end();it++){
parsimony[it->first] = 1;
}
while((lookup[0] != NULL) && ((allLines == 1) || (userLabels.size() != 0) || (userLines.size() != 0))) {
if(allLines == 1 || lines.count(count) == 1 || labels.count(lookup[0]->getLabel()) == 1){
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
processedLabels.insert(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
processedLabels.insert(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
}
while((lookup[0] != NULL) && ((allLines == 1) || (userLabels.size() != 0) || (userLines.size() != 0))) {
if(allLines == 1 || lines.count(count) == 1 || labels.count(lookup[0]->getLabel()) == 1){
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
processedLabels.insert(lookup[0]->getLabel());
userLabels.erase(lookup[0]->getLabel());
userLines.erase(count);
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
processedLabels.insert(lookup[0]->getLabel());
userLabels.erase(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
processedLabels.insert(lookup[0]->getLabel());
userLabels.erase(lookup[0]->getLabel());
if(allLines == 1 || lines.count(count) == 1 || labels.count(sabund->getLabel()) == 1){
- mothurOut(sabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(sabund->getLabel()); mothurOutEndLine();
venn->getPic(sabund, vennCalculators);
processedLabels.insert(sabund->getLabel());
delete sabund;
sabund = input->getSAbundVector(lastLabel);
- mothurOut(sabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(sabund->getLabel()); mothurOutEndLine();
venn->getPic(sabund, vennCalculators);
processedLabels.insert(sabund->getLabel());
delete sabund;
sabund = input->getSAbundVector(lastLabel);
- mothurOut(sabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(sabund->getLabel()); mothurOutEndLine();
venn->getPic(sabund, vennCalculators);
delete sabund;