X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pcacommand.h;h=22f288a7e768a74c939781df1302e42b92124600;hb=134a9c1275862a6b3ea10a2c0f11965c0a535854;hp=822be3b905b1a808e74c8b3b59272ca2431cf763;hpb=f27b66ce6415eb14c434f9850019c7cf140e023e;p=mothur.git diff --git a/pcacommand.h b/pcacommand.h index 822be3b..22f288a 100644 --- a/pcacommand.h +++ b/pcacommand.h @@ -18,28 +18,32 @@ 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; + string phylipfile, columnfile, namefile, format, filename, fbase, outputDir; float cutoff, precision; - int matrix; + vector outputNames; + map > outputTypes; void get_comment(istream&, char, char); - void read_mega(istream&, int, vector&, vector >&); - void read_phylip(istream&, int, vector&, vector >&); - void read(string, int, vector&, vector >&); + 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); - void print_matrix(vector >); };