Permalink
Browse files

Fixes summary.tax numSeqs output

  • Loading branch information...
1 parent 118ba5e commit fc5962f949c3af64dcf2962f63f6fb4e47caa4b8 @mothur-westcott mothur-westcott committed Feb 24, 2017
Showing with 3 additions and 1 deletion.
  1. +3 −1 source/commands/summarytaxcommand.cpp
@@ -271,12 +271,14 @@ int SummaryTaxCommand::execute(){
}else{
for (int i = 0; i < itNames->second.size(); i++) {
taxaSum->addSeqToTree(itNames->second[i], newTax); //add it as many times as there are identical seqs
+ numSeqs++;
}
itNames->second.clear();
nameMap.erase(itNames->first);
}
}else {
taxaSum->addSeqToTree(name, newTax);
+ numSeqs++;
}
}
@@ -295,7 +297,7 @@ int SummaryTaxCommand::execute(){
outTaxTree.close();
delete taxaSum;
- if (groupMap != NULL) { delete groupMap; } if (ct != NULL) { delete ct; }
+ if (groupMap != NULL) { delete groupMap; } if (ct != NULL) { numSeqs = ct->getNumSeqs(); delete ct; }
if (m->control_pressed) { m->mothurRemove(summaryFile); return 0; }

0 comments on commit fc5962f

Please sign in to comment.