Permalink
Browse files
Adds tax space to pcr.seqs
- Loading branch information...
Showing
with
3 additions
and
4 deletions.
-
+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