X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sensspeccommand.h;h=bfa329131f341e6a0750a318cc237ead77bbd8a4;hb=a0f1fca79d2ddfa7ad36b4485039c68b5704fe8d;hp=b2833bf70fc71c24dc76c0d71910b181fc09aa3c;hpb=e150b0b0664caec517485ee6d69dcdade6dcae77;p=mothur.git diff --git a/sensspeccommand.h b/sensspeccommand.h index b2833bf..bfa3291 100644 --- a/sensspeccommand.h +++ b/sensspeccommand.h @@ -13,6 +13,8 @@ #include "mothur.h" #include "command.hpp" +#include "listvector.hpp" +#include "inputdata.h" class SensSpecCommand : public Command { @@ -24,15 +26,18 @@ public: vector setParameters(); string getCommandName() { return "sens.spec"; } string getCommandCategory() { return "OTU-Based Approaches"; } - string getHelpString(); - string getCitation() { return "http://www.mothur.org/wiki/Sens.spec"; } + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "Schloss PD, Westcott SL (2011). Assessing and improving methods used in OTU-based approaches for 16S rRNA gene sequence analysis. Appl Environ Microbiol 77:3219.\nhttp://www.mothur.org/wiki/Sens.spec"; } + string getDescription() { return "sens.spec"; } + int execute(); void help() { m->mothurOut(getHelpString()); } private: - void processPhylip(); - void processColumn(); + int processPhylip(); + int processColumn(); void setUpOutput(); void outputStatistics(string, string); @@ -40,13 +45,22 @@ private: string outputDir; string format; vector outputNames; + set labels; //holds labels to be used long int truePositives, falsePositives, trueNegatives, falseNegatives; - bool abort; + bool abort, allLines, square; bool hard; - string lineLabel; + //string lineLabel; double cutoff; int precision; + + int fillSeqMap(map&, ListVector*&); + int fillSeqPairSet(set&, ListVector*&); + int process(map&, string, bool&, string&); + int process(set&, string, bool&, string&, int); + string preProcessList(); + bool testFile(); + }; #endif