1 #ifndef LIBSHUFFCOMMAND_H
2 #define LIBSHUFFCOMMAND_H
8 * Created by Sarah Westcott on 3/9/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
13 #include "command.hpp"
14 #include "fullmatrix.h"
19 class LibShuffCommand : public Command {
22 LibShuffCommand(string);
26 vector<string> setParameters();
27 string getCommandName() { return "libshuff"; }
28 string getCommandCategory() { return "Hypothesis Testing"; }
29 string getOutputFileNameTag(string, string);
30 string getHelpString();
31 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"; }
32 string getDescription() { return "a generic test that describes whether two or more communities have the same structure using the Cramer-von Mises test statistic"; }
35 void help() { m->mothurOut(getHelpString()); }
38 vector<string> groupNames;
41 int printCoverageFile();
42 int printSummaryFile();
48 int numGroups, numComp, iters;
49 string coverageFile, summaryFile, phylipfile, groupfile;
50 vector<vector<int> > pValueCounts;
51 vector<vector<double> > savedDXYValues;
52 vector<vector<vector<double> > > savedMinValues;
55 string outputFile, groups, userform, savegroups, outputDir;
56 vector<string> Groups, outputNames; //holds groups to be used