X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sensspeccommand.h;h=bfa329131f341e6a0750a318cc237ead77bbd8a4;hp=687834c5b1b9098830747b79dd0e9e6135e6951b;hb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;hpb=8bc3e5b38c2317a1715f53be22fa96455868c281 diff --git a/sensspeccommand.h b/sensspeccommand.h index 687834c..bfa3291 100644 --- a/sensspeccommand.h +++ b/sensspeccommand.h @@ -13,38 +13,57 @@ #include "mothur.h" #include "command.hpp" +#include "listvector.hpp" +#include "inputdata.h" class SensSpecCommand : public Command { public: SensSpecCommand(string); SensSpecCommand(); - ~SensSpecCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~SensSpecCommand(){} + + vector setParameters(); + string getCommandName() { return "sens.spec"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + + 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); - string listFile, distFile, nameFile, sensSpecFileName; + string listFile, distFile, nameFile, sensSpecFileName, phylipfile, columnfile; string outputDir; string format; vector outputNames; - map > outputTypes; + 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 \ No newline at end of file +#endif + + +