X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sensspeccommand.h;h=a5072e80c4bd908ed63d0f1ab34c83a5285b2e95;hb=2ecee16fec29d4c525f740ec19b27962ca09c050;hp=47d6e4e5fedfd92ec15700b931ce06681e5daf2c;hpb=8f7f4fc08b8c70d9ef0f79607813dba4e926e102;p=mothur.git diff --git a/sensspeccommand.h b/sensspeccommand.h index 47d6e4e..a5072e8 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,17 @@ public: vector setParameters(); string getCommandName() { return "sens.spec"; } string getCommandCategory() { return "OTU-Based Approaches"; } + string getOutputFileNameTag(string, string); string getHelpString(); 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. \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 +44,20 @@ 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; 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); + }; #endif