X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=reportfile.cpp;h=8e3b746159a02da7082749bea103222540e0c4a6;hp=f392ed974c5cd5e535e7593e4e3246b1ff70e524;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=fe5bbb79f9434df947347881c47b430112f4253e diff --git a/reportfile.cpp b/reportfile.cpp index f392ed9..8e3b746 100644 --- a/reportfile.cpp +++ b/reportfile.cpp @@ -7,6 +7,8 @@ * */ +#include "mothur.h" +#include "mothurout.h" #include "reportfile.h" /**************************************************************************************************/ @@ -49,7 +51,7 @@ ReportFile::ReportFile(ifstream& repFile){ repFile >> templateName; repFile >> templateLength; repFile >> searchMethod; - repFile >> searchScore; + repFile >> dummySearchScore; repFile >> alignmentMethod; repFile >> queryStart; repFile >> queryEnd; @@ -61,6 +63,14 @@ ReportFile::ReportFile(ifstream& repFile){ repFile >> longestInsert; repFile >> simBtwnQueryAndTemplate; + if(dummySearchScore != "nan"){ + istringstream stream(dummySearchScore); + stream >> searchScore; + } + else{ + searchScore = 0; + } + m->gobble(repFile); } catch(exception& e) {