#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(){};
+
+ vector<string> setParameters();
+ string getCommandName() { return "libshuff"; }
+ string getCommandCategory() { return "Hypothesis Testing"; }
+ string getHelpString();
+
int execute();
- void help();
-
+ 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