Permalink
Browse files

Adds tax space to get/remove.groups

  • Loading branch information...
1 parent 0755b85 commit 1dba3f49c63ed5123f1265bc23d3f54136969bdc @mothur-westcott mothur-westcott committed Aug 24, 2016
Showing with 4 additions and 8 deletions.
  1. +2 −4 source/commands/getgroupscommand.cpp
  2. +2 −4 source/commands/removegroupscommand.cpp
@@ -992,8 +992,8 @@ int GetGroupsCommand::readTax(){
while(!in.eof()){
if (m->control_pressed) { in.close(); out.close(); m->mothurRemove(outputFileName); return 0; }
- in >> name; //read from first column
- in >> tax; //read from second column
+ in >> name; m->gobble(in);
+ tax = m->getline(in); m->gobble(in);
//if this name is in the accnos file
if (names.count(name) != 0) {
@@ -1007,8 +1007,6 @@ int GetGroupsCommand::readTax(){
out << it->second << '\t' << tax << endl;
}
}
-
- m->gobble(in);
}
in.close();
out.close();
@@ -1049,8 +1049,8 @@ int RemoveGroupsCommand::readTax(){
while(!in.eof()){
if (m->control_pressed) { in.close(); out.close(); m->mothurRemove(outputFileName); return 0; }
- in >> name; //read from first column
- in >> tax; //read from second column
+ in >> name; m->gobble(in);
+ tax = m->getline(in); m->gobble(in);
//if this name is in the accnos file
if (names.count(name) == 0) {
@@ -1062,8 +1062,6 @@ int RemoveGroupsCommand::readTax(){
wroteSomething = true;
out << it->second << '\t' << tax << endl;
}else { removedCount++; } }
-
- m->gobble(in);
}
in.close();
out.close();

0 comments on commit 1dba3f4

Please sign in to comment.