]> git.donarmstrong.com Git - mothur.git/blobdiff - libshuffcommand.h
changes while testing
[mothur.git] / libshuffcommand.h
index 1e5726dd770f928b62ca8ef07fa3c24150c0a8b5..9148576b9135826ffe33b084d833525af182bb5a 100644 (file)
 #include "command.hpp"
 #include "fullmatrix.h"
 #include "libshuff.h"
+#include "groupmap.h"
 
 
-class GlobalData;
-
 class LibShuffCommand : public Command {
        
 public:
-       LibShuffCommand(string);        
+       LibShuffCommand(string);
+       LibShuffCommand();      
        ~LibShuffCommand(){};
-       int execute();
-       void help();    
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "libshuff";                            }
+       string getCommandCategory()             { return "Hypothesis Testing";          }
+       
+       string getHelpString(); 
+    string getOutputPattern(string);   
+       string getCitation() { return "Singleton DR, Furlong MA, Rathbun SL, Whitman WB (2001). Quantitative comparisons of 16S rRNA gene sequence libraries from environmental samples. Appl Environ Microbiol 67: 4374-6. \nSchloss PD, Larget BR, Handelsman J (2004). Integration of microbial ecology and statistics: a test to compare gene libraries. Appl Environ Microbiol 70: 5485-92. \nhttp://www.mothur.org/wiki/Libshuff"; }
+       string getDescription()         { return "a generic test that describes whether two or more communities have the same structure using the Cramer-von Mises test statistic"; }
 
+       int execute();
+       void help() { m->mothurOut(getHelpString()); }  
+       
 private:
        vector<string> groupNames;
        
        void setGroups();
-       void printCoverageFile();
-       void printSummaryFile();
-
-       GlobalData* globaldata;
+       int printCoverageFile();
+       int printSummaryFile();
+       
+       GroupMap* groupMap;
        FullMatrix* matrix;
        Libshuff* form;
        float cutOff, step;
        int numGroups, numComp, iters;
-       string coverageFile, summaryFile;
+       string coverageFile, summaryFile, phylipfile, groupfile;
        vector<vector<int> > pValueCounts;
        vector<vector<double> > savedDXYValues;
        vector<vector<vector<double> > > savedMinValues;
 
-       bool abort;
-       string outputFile, groups, userform, savegroups;
-       vector<string> Groups; //holds groups to be used
+       bool abort, sim;
+       string outputFile, groups, userform, savegroups, outputDir;
+       vector<string> Groups, outputNames; //holds groups to be used
 };
 
 #endif