X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pcacommand.h;h=eedfcf35c58d508cb37ebc41416ca0a3bfc7b1c8;hb=943d3038553f82378567d3b651969146716e5862;hp=089d1c102f38d66bfa0d83c2120dd3d3f1cd883e;hpb=aa9238c0a9e6e7aa0ed8b8b606b08ad4fd7dcfe3;p=mothur.git diff --git a/pcacommand.h b/pcacommand.h index 089d1c1..eedfcf3 100644 --- a/pcacommand.h +++ b/pcacommand.h @@ -3,14 +3,16 @@ /* * pcacommand.h - * Mothur + * mothur * - * Created by westcott on 1/4/10. - * Copyright 2010 Schloss Lab. All rights reserved. + * Created by westcott on 1/7/11. + * Copyright 2011 Schloss Lab. All rights reserved. * */ - + #include "command.hpp" +#include "linearalgebra.h" +#include "globaldata.hpp" /*****************************************************************/ @@ -18,30 +20,33 @@ class PCACommand : public Command { public: PCACommand(string); + PCACommand(); ~PCACommand(); + vector getRequiredParameters(); + vector getValidParameters(); + vector getRequiredFiles(); + map > getOutputFiles() { return outputTypes; } int execute(); void help(); private: - - bool abort; - string phylipfile, columnfile, namefile, format, filename, fbase, outputDir; - float cutoff, precision; - vector outputNames; + GlobalData* globaldata; - void get_comment(istream&, char, char); - int read_phylip(istream&, int, vector&, vector >&); - void read(string, vector&, vector >&); - double pythag(double, double); - void matrix_mult(vector >, vector >, vector >&); - void recenter(double, vector >, vector >&); - void tred2(vector >&, vector&, vector&); - void qtli(vector&, vector&, vector >&); - void output(string, vector, vector >, vector); + bool abort, metric; + string outputDir, mode, inputFile, label, groups; + vector outputNames, Groups; + set labels; + map > outputTypes; + LinearAlgebra linearCalc; -}; + //vector< vector > createMatrix(vector); + int process(vector&); + void output(string, vector, vector >&, vector); +}; + /*****************************************************************/ - + #endif +