//create search database and names vector
generateDatabaseAndNames(tfile, tempFile, method, ksize, 0.0, 0.0, 0.0, 0.0);
+ //prevents errors caused by creating shortcut files if you had an error in the sanity check.
+ if (m->control_pressed) { remove(phyloTreeName.c_str()); }
+
genusNodes = phyloTree->getGenusNodes();
genusTotals = phyloTree->getGenusTotals();
try{
// if only 1 sequence in bin or processing the "unique" label, then
// the first sequence of the OTU is the representative one
- if ((names.size() == 1) || (list->getLabel() == "unique")) {
+ if ((names.size() == 2) || (names.size() == 1) || (list->getLabel() == "unique")) {
return names[0];
}else{
vector<int> seqIndex(names.size());
Sequence currSeq(inFASTA);
cout << i << '\t' << currSeq.getName() << endl;
+
string origSeq = currSeq.getUnaligned();
if (origSeq != "") {
int groupBar, groupPrime;