AlignmentCell currentCell = alignment[row][column]; // Start the traceback from the bottom-right corner of the
// matrix
-
+
if(currentCell.prevCell == 'x'){ seqAaln = seqBaln = "NOALIGNMENT"; }//If there's an 'x' in the bottom-
else{ // right corner bail out because it means nothing got aligned
while(currentCell.prevCell != 'x'){ // while the previous cell isn't an 'x', keep going...
seqBend = seqB.length() - seqBend - 1;
}
+/**************************************************************************************************/
+
+Alignment::~Alignment(){
+ try {
+ for (int i = 0; i < alignment.size(); i++) {
+ for (int j = (alignment[i].size()-1); j >= 0; j--) { alignment[i].pop_back(); }
+ }
+ }
+ catch(exception& e) {
+ cout << "Standard Error: " << e.what() << " has occurred in the Alignment class Function ~Alignment. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ exit(1);
+ }
+ catch(...) {
+ cout << "An unknown error has occurred in the Alignment class function ~Alignment. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ exit(1);
+ }
+}
/**************************************************************************************************/