*
*/
-#include "sequence.hpp"
#include "trimseqscommand.h"
//***************************************************************************************************************
TrimSeqsCommand::TrimSeqsCommand(){
try {
- oligos = 0;
- forwardPrimerMismatch = 0;
- reversePrimerMismatch = 0;
- barcodeMismatch = 0;
-
+ oligos = 0;
totalBarcodeCount = 0;
matchBarcodeCount = 0;
cout << "you need to at least enter a fasta file name" << endl;
}
- if(isTrue(globaldata->getFlip())) { flip = 1; }
-
- if(globaldata->getOligosFile() != ""){
- oligos = 1;
- forwardPrimerMismatch = atoi(globaldata->getForwardMismatch().c_str());
- reversePrimerMismatch = atoi(globaldata->getReverseMismatch().c_str());
- barcodeMismatch = atoi(globaldata->getBarcodeMismatch().c_str());
- }
-
- if(!flip && !oligos) { cout << "what was the point?" << endl; }
+ if(isTrue(globaldata->getFlip())) { flip = 1; }
+ if(globaldata->getOligosFile() != "") { oligos = 1; }
+ if(!flip && !oligos) { cout << "huh?" << endl; }
-
}
catch(exception& e) {
cout << "Standard Error: " << e.what() << " has occurred in the TrimSeqsCommand class Function TrimSeqsCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
while(!inFASTA.eof()){
Sequence currSeq(inFASTA);
+ string origSeq = currSeq.getUnaligned();
string group;
string trashCode = "";
}
else{
currSeq.setName(currSeq.getName() + '|' + trashCode);
+ currSeq.setUnaligned(origSeq);
currSeq.printSequence(scrapFASTA);
}
success = 1;
break;
}
-
}
+
totalFPrimerCount++;
return success;
success = 1;
break;
}
-
- }
+ }
+
totalRPrimerCount++;
return success;