Permalink
Browse files

Adds tax space to pcr.seqs

  • Loading branch information...
1 parent b30ae5e commit 14b21d3b5e50625d356c1664b20a6d761fc14552 @mothur-westcott mothur-westcott committed Aug 24, 2016
Showing with 3 additions and 4 deletions.
  1. +3 −4 source/commands/pcrseqscommand.cpp
@@ -1211,17 +1211,16 @@ int PcrSeqsCommand::readTax(set<string> names){
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) {
wroteSomething = true;
out << name << '\t' << tax << endl;
}else { removedCount++; }
- m->gobble(in);
- }
+ }
in.close();
out.close();

0 comments on commit 14b21d3

Please sign in to comment.