]> git.donarmstrong.com Git - mothur.git/blobdiff - nastreport.cpp
changed sequence class so that when constructor is called aligned and unaligned value...
[mothur.git] / nastreport.cpp
index 0f361f1dc1401848e4a39fc15cd3def8a3f37a2d..aa7d3934ae11c3c4490ed3beaaceaf320ddfc6be 100644 (file)
@@ -27,6 +27,12 @@ NastReport::NastReport(string candidateReportFName) {
 
 /******************************************************************************************************************/
 
+NastReport::~NastReport() {
+       candidateReportFile.close();
+}
+
+/******************************************************************************************************************/
+
 void NastReport::print(){
        
        candidateReportFile << queryName << '\t' << queryLength << '\t' << templateName << '\t' << templateLength << '\t';
@@ -35,7 +41,7 @@ void NastReport::print(){
        candidateReportFile << alignmentMethod << '\t' << candidateStartPosition << "\t" << candidateEndPosition << '\t';
        candidateReportFile << templateStartPosition << "\t" << templateEndPosition << '\t';
        candidateReportFile << pairwiseAlignmentLength << '\t' << totalGapsInQuery << '\t' << totalGapsInTemplate << '\t';
-       candidateReportFile << longestInsert << '\t';;
+       candidateReportFile << longestInsert << '\t';
        candidateReportFile << setprecision(2) << similarityToTemplate;
        
        candidateReportFile << endl;