-
- int pos; //to use in smart distancing, position of last read in file
- int lastPos;
- vector<ListVector> lists;
+ vector< vector<string> > lists;
+
+ int count = 0;
+ for (set<string>::iterator it = mylabels.begin(); it != mylabels.end(); it++) {
+ string realLabel;
+ vector< vector<string> > thisList = getListVector(*it, realLabel);
+
+ if (m->control_pressed) { return lists; }
+
+ for (int i = 0; i < thisList.size(); i++) { lists.push_back(thisList[i]); }
+
+ if (count == 0) { list1Label = realLabel; count++; }
+ else { list2Label = realLabel; }
+ }
+
+ return lists;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "OtuHierarchyCommand", "getListVectors");
+ exit(1);
+ }
+}
+//**********************************************************************************************************************
+vector< vector<string> > OtuHierarchyCommand::getListVector(string label, string& realLabel){ //return value [0] -> otulabels [1] -> bins
+ try {
+ vector< vector<string> > myList;
+
+ InputData input(listFile, "list");
+ ListVector* list = input.getListVector();
+ string lastLabel = list->getLabel();