CommonHeader header;
readCommonHeader(in, header);
-
+
int count = 0;
+ mycount = 0;
//check magic number and version
if (header.magicNumber != 779314790) { m->mothurOut("Magic Number is not correct, not a valid .sff file"); m->mothurOutEndLine(); return count; }
}
count++;
+ mycount++;
//report progress
if((count+1) % 10000 == 0){ m->mothurOut(toString(count+1)); m->mothurOutEndLine(); }
if (trim) {
if(header.clipQualRight < header.clipQualLeft){
+ out << ">" << header.name << " xy=" << header.xy << endl;
out << "0\t0\t0\t0";
}
else if((header.clipQualRight != 0) && ((header.clipQualRight-header.clipQualLeft) >= 0)){
string sffFilename, sfftxtFilename, outputDir, accnosName;
vector<string> filenames, outputNames, accnosFileNames;
bool abort, fasta, qual, trim, flow, sfftxt, hasAccnos;
+ int mycount;
set<string> seqNames;
map<string, vector<string> > outputTypes;
if(barcodes.size() != 0){
string thisGroup = barcodeNameVector[barcodeIndex];
- if (primers.size() != 0) { thisGroup += "." + primerNameVector[primerIndex]; }
+ if (primers.size() != 0) { if (primerNameVector[primerIndex] != "") { thisGroup += "." + primerNameVector[primerIndex]; } }
outGroupsFile << currSeq.getName() << '\t' << thisGroup << endl;