flowData.capFlows(maxFlows);
Sequence currSeq = flowData.getSequence();
+ //cout << currSeq.getName() << '\t' << currSeq.getUnaligned() << endl;
if(!flowData.hasMinFlows(minFlows)){ //screen to see if sequence is of a minimum number of flows
success = 0;
trashCode += 'l';
while(!oligosFile.eof()){
- oligosFile >> type; m->gobble(oligosFile); //get the first column value of the row - is it a comment or a feature we are interested in?
-
+ oligosFile >> type; //get the first column value of the row - is it a comment or a feature we are interested in?
+
+ if (m->debug) { m->mothurOut("[DEBUG]: type = " + type + ".\n"); }
+
if(type[0] == '#'){ //igore the line because there's a comment
- while (!oligosFile.eof()) { char c = oligosFile.get(); if (c == 10 || c == 13){ break; } } // get rest of line if there's any crap there
+ while (!oligosFile.eof()) { char c = oligosFile.get(); if (c == 10 || c == 13){ break; } }
+ m->gobble(oligosFile);// get rest of line if there's any crap there
}
else{ //there's a feature we're interested in
-
+ m->gobble(oligosFile);
for(int i=0;i<type.length();i++){ type[i] = toupper(type[i]); } //make type case insensitive
oligosFile >> oligo; //get the DNA sequence for the feature
oligo[i] = toupper(oligo[i]);
if(oligo[i] == 'U') { oligo[i] = 'T'; }
}
-
+
+ if (m->debug) { m->mothurOut("[DEBUG]: oligos = " + oligo + ".\n"); }
+
if(type == "FORWARD"){ //if the feature is a forward primer...
group = "";
//check for repeat barcodes
map<string, int>::iterator itBar = barcodes.find(oligo);
if (itBar != barcodes.end()) { m->mothurOut("barcode " + oligo + " is in your oligos file already."); m->mothurOutEndLine(); }
-
+
+ if (m->debug) { m->mothurOut("[DEBUG]: group = " + group + ".\n"); }
+
barcodes[oligo]=indexBarcode; indexBarcode++;
barcodeNameVector.push_back(group);
}else if(type == "LINKER"){