m->mothurOut(outputFileName); m->mothurOutEndLine(); outputNames.push_back(outputFileName); outputTypes["shared"].push_back(outputFileName);
m->mothurOutEndLine();
+ //set shared file as new current sharedfile
+ string current = "";
+ itTypes = outputTypes.find("shared");
+ if (itTypes != outputTypes.end()) {
+ if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setSharedFile(current); }
+ }
+
return 0;
}
catch(exception& e) {
int abund = thisLookUp[i]->getAbundance(j);
- float relabund = relabund = abund / (float) thisLookUp[i]->getNumSeqs();
+ float relabund = abund / (float) thisLookUp[i]->getNumSeqs();
float newNorm = relabund * norm;
//round to nearest int
float abund = thisLookUp[i]->getAbundance(j);
- float relabund = relabund = abund / (float) thisLookUp[i]->getNumSeqs();
+ float relabund = abund / (float) thisLookUp[i]->getNumSeqs();
float newNorm = relabund * norm;
thisLookUp[i]->set(j, newNorm, thisLookUp[i]->getGroup());