]> git.donarmstrong.com Git - mothur.git/blobdiff - alignmentdb.cpp
chimeracode
[mothur.git] / alignmentdb.cpp
index e4509521e7383d305151170e2fcc96da1c2f3e88..5c758ecebb249710be141813a734eb571b88da32 100644 (file)
@@ -17,7 +17,7 @@
 AlignmentDB::AlignmentDB(string fastaFileName, string method, int kmerSize, float gapOpen, float gapExtend, float match, float misMatch){              //      This assumes that the template database is in fasta format, may 
        try {                                                                                   //      need to alter this in the future?
                longest = 0;
-               
+
                ifstream fastaFile;
                openInputFile(fastaFileName, fastaFile);
                
@@ -30,7 +30,7 @@ AlignmentDB::AlignmentDB(string fastaFileName, string method, int kmerSize, floa
                        if (temp.getName() != "") {
                                templateSequences.push_back(temp);
                                //save longest base
-                               if (temp.getUnaligned().length() > longest)  { longest = temp.getUnaligned().length(); }
+                               if (temp.getUnaligned().length() > longest)  { longest = temp.getUnaligned().length()+1; }
                        }
                }