int score;
//string line;
- //getline(qFile, line);
+ //m->getline(qFile, line);
//istringstream nameStream(line);
qFile >> seqName;
while (!qFile.eof()) { char c = qFile.get(); if (c == 10 || c == 13 || c == -1){ break; } } // get rest of line
- gobble(qFile);
+ m->gobble(qFile);
if (seqName == "") { m->mothurOut("Error reading quality file, name blank at position, " + toString(qFile.tellg())); m->mothurOutEndLine(); }
else {
seqName = seqName.substr(1);
}
-
- //getline(qFile, line);
+
+ //m->getline(qFile, line);
//istringstream qualStream(line);
//while(qualStream){
//seqLength = qScores.size();
+ /*while(!in.eof()){
+ string saveName = "";
+ string name = "";
+ string scores = "";
+
+ in >> name;
+ //cout << name << endl;
+ if (name.length() != 0) {
+ saveName = name.substr(1);
+ while (!in.eof()) {
+ char c = in.get();
+ if (c == 10 || c == 13){ break; }
+ else { name += c; }
+ }
+ m->gobble(in);
+ }
+
+ while(in){
+ char letter= in.get();
+ if(letter == '>'){ in.putback(letter); break; }
+ else{ scores += letter; }
+ }
+
+ //istringstream iss (scores,istringstream::in);
+
+ //int count = 0; int tempScore;
+ //while (iss) { iss >> tempScore; count++; }
+ //cout << saveName << '\t' << count << endl;
+
+ m->gobble(in);
+ }*/
+
+
+
for(int i=0;i<seqLength;i++){
qFile >> score;
qScores.push_back(score);
}
- gobble(qFile);
+ m->gobble(qFile);
}
catch(exception& e) {
}
}
+/**************************************************************************************************/
/**************************************************************************************************/