if (m->control_pressed) { return 0; }
if (namefile != "") { readNames(); }
- if (countfile != "") { ct.readTable(countfile); }
+ if (countfile != "") { ct.readTable(countfile, true, false); }
if (m->control_pressed) { return 0; }
}else {
-
+
InputData* input = new InputData(listfile, "list");
ListVector* list = input->getListVector();
outSummary << "OTU#\tPositioninAlignment\tA\tT\tG\tC\tGap\tNumberofSeqs\tConsensusBase" << endl;
+ string snumBins = toString(list->getNumBins());
+ vector<string> binLabels = list->getLabels();
for (int i = 0; i < list->getNumBins(); i++) {
if (m->control_pressed) { outSummary.close(); outName.close(); outFasta.close(); return 0; }
string bin = list->get(i);
string consSeq = getConsSeq(bin, outSummary, i);
- outFasta << ">seq" << (i+1) << endl << consSeq << endl;
- outName << "seq" << (i+1) << '\t' << "seq" << (i+1) << "," << bin << endl;
+ outFasta << ">" << binLabels[i] << endl << consSeq << endl;
+ outName << binLabels[i] << '\t' << binLabels[i] << "," << bin << endl;
}
outSummary.close(); outName.close(); outFasta.close();