}else {
outNames << (it->second.second).substr(0, pos) << '\t' << it->second.second << endl;
}
- }else { ct.printSeq(outNames, it->second.second); }
- }
+ } else {
+ //get rep name
+ int pos = (it->second.second).find_first_of(',');
+ if (pos == string::npos) { // only reps itself
+ ct.printSeq(outNames, it->second.second);
+ } else {
+ ct.printSeq(outNames, (it->second.second).substr(0,pos));
+ }
+ }
+ }
outNames.close();
if (m->control_pressed) { outputTypes.clear(); m->mothurRemove(outFastaFile); for (int j = 0; j < outputNames.size(); j++) { m->mothurRemove(outputNames[j]); } return 0; }