Permalink
Browse files

Adds tax spaces to common cons tax read

  • Loading branch information...
1 parent 8d8485f commit 189fc44282678fc1a62ce26efa0a21357bbc28be @mothur-westcott mothur-westcott committed Aug 25, 2016
Showing with 8 additions and 2 deletions.
  1. +8 −2 source/mothurout.cpp
View
@@ -1900,7 +1900,10 @@ vector<consTax> MothurOut::readConsTax(string inputfile){
string otu = ""; string tax = "unknown";
int size = 0;
- in >> otu >> size >> tax; gobble(in);
+ in >> otu; gobble(in);
+ in >> size; gobble(in);
+ tax = getline(in); gobble(in);
+
consTax temp(otu, tax, size);
taxes.push_back(temp);
}
@@ -1929,7 +1932,10 @@ int MothurOut::readConsTax(string inputfile, map<int, consTax2>& taxes){
string otu = ""; string tax = "unknown";
int size = 0;
- in >> otu >> size >> tax; gobble(in);
+ in >> otu; gobble(in);
+ in >> size; gobble(in);
+ tax = getline(in); gobble(in);
+
consTax2 temp(otu, tax, size);
string simpleBin = getSimpleLabel(otu);
int bin;

0 comments on commit 189fc44

Please sign in to comment.