]> git.donarmstrong.com Git - mothur.git/blobdiff - alignment.cpp
continued work on chimeras and fixed bug in trim.seqs and reverse.seqs that was due...
[mothur.git] / alignment.cpp
index 25b27604533cbefa4ba1748001a45622e9712547..2734c389cd0122add50ee1b3cc23cd879788ca0b 100644 (file)
@@ -31,7 +31,22 @@ Alignment::Alignment(int A) : nCols(A), nRows(A) {
                exit(1);
        }
 }
+/**************************************************************************************************/
+void Alignment::resize(int A) {
+       try {
+               nCols = A;
+               nRows = A;
 
+               alignment.resize(nRows);                        
+               for(int i=0;i<nRows;i++){                       
+                       alignment[i].resize(nCols);             
+               }       
+       }
+       catch(exception& e) {
+               errorOut(e, "Alignment", "resize");
+               exit(1);
+       }
+}
 /**************************************************************************************************/
 
 void Alignment::traceBack(){                   //      This traceback routine is used by the dynamic programming algorithms