X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=nastreport.cpp;h=aa7d3934ae11c3c4490ed3beaaceaf320ddfc6be;hb=30f2d98fffb579b870c8969ddcc1dfc61ccbb70a;hp=799793ece4dda8567d1dcb5a9865a70c9dd45f3e;hpb=5b7ac70116137b52dd7884b76c5bca660a5fea38;p=mothur.git diff --git a/nastreport.cpp b/nastreport.cpp index 799793e..aa7d393 100644 --- a/nastreport.cpp +++ b/nastreport.cpp @@ -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;