]> 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 799793ece4dda8567d1dcb5a9865a70c9dd45f3e..aa7d3934ae11c3c4490ed3beaaceaf320ddfc6be 100644 (file)
@@ -7,8 +7,6 @@
  *
  */
 
-using namespace std;
-
 #include "sequence.hpp"
 #include "nast.hpp"
 #include "alignment.hpp"
@@ -29,6 +27,12 @@ NastReport::NastReport(string candidateReportFName) {
 
 /******************************************************************************************************************/
 
+NastReport::~NastReport() {
+       candidateReportFile.close();
+}
+
+/******************************************************************************************************************/
+
 void NastReport::print(){
        
        candidateReportFile << queryName << '\t' << queryLength << '\t' << templateName << '\t' << templateLength << '\t';
@@ -37,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;