From 9bc68cbe7fd7c5cf00b66d73d60624de80fb7933 Mon Sep 17 00:00:00 2001 From: westcott Date: Tue, 22 Mar 2011 11:43:48 +0000 Subject: [PATCH] fixed clearcut version bug, added group count output to get.groups and remove.groups --- getgroupscommand.cpp | 2 +- removegroupscommand.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/getgroupscommand.cpp b/getgroupscommand.cpp index 7d81aaa..84b168a 100644 --- a/getgroupscommand.cpp +++ b/getgroupscommand.cpp @@ -250,7 +250,7 @@ int GetGroupsCommand::execute(){ if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { remove(outputNames[i].c_str()); } return 0; } m->mothurOut("Selected " + toString(names.size()) + " sequences. From the groups: "); m->mothurOutEndLine(); - for (int i = 0; i < Groups.size(); i++) { m->mothurOut(Groups[i]); m->mothurOut(" contains " + toString(groupMap->getNumSeqs(Groups[i]))); m->mothurOutEndLine(); } + for (int i = 0; i < Groups.size(); i++) { m->mothurOut(Groups[i]); m->mothurOut(" contains " + toString(groupMap->getNumSeqs(Groups[i])) + " sequences."); m->mothurOutEndLine(); } m->mothurOutEndLine(); diff --git a/removegroupscommand.cpp b/removegroupscommand.cpp index f70edb6..b70b679 100644 --- a/removegroupscommand.cpp +++ b/removegroupscommand.cpp @@ -250,7 +250,7 @@ int RemoveGroupsCommand::execute(){ if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { remove(outputNames[i].c_str()); } return 0; } m->mothurOut("Removed " + toString(names.size()) + " sequences. From the groups: "); m->mothurOutEndLine(); - for (int i = 0; i < Groups.size(); i++) { m->mothurOut(Groups[i]); m->mothurOut(" contains " + toString(groupMap->getNumSeqs(Groups[i]))); m->mothurOutEndLine(); } + for (int i = 0; i < Groups.size(); i++) { m->mothurOut(Groups[i]); m->mothurOut(" contains " + toString(groupMap->getNumSeqs(Groups[i])) + " sequences."); m->mothurOutEndLine(); } m->mothurOutEndLine(); if (outputNames.size() != 0) { -- 2.39.2